frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: DualMix128 – A fast, simple PRNG passing PractRand (32TB) and BigCrush

https://github.com/the-othernet/DualMix128
5•the_othernet•8mo ago
Hi HN,

I'd like to share DualMix128, a pseudo-random number generator I developed. It's written in C and achieves very high speed while maintaining strong statistical properties for non-cryptographic use.

GitHub (MIT License): https://github.com/the-othernet/DualMix128

Key points:

* *Fast:* Benchmarked at ~0.36 ns per 64-bit generation on GCC 11.4 (-O3 -march=native). This was over 2x faster than `xoroshiro128++` (~0.74 ns) and competitive with `wyrand` (~0.36 ns) in the same tests. (Benchmark code/results in repo).

* *Robust:* Passes the full TestU01 BigCrush suite and PractRand up to 32TB with no anomalies reported. (Test harnesses/logs in repo).

* *Simple Algorithm:* Uses a 128-bit state (two `uint64_t`) with simple mixing based on addition, XOR, rotation, and a final multiplication by the golden ratio constant.

* *C Implementation:* Minimal dependencies (`stdint.h` for core), straightforward C code.

This came out of exploring simple constructions for efficient PRNGs that still hold up under heavy statistical testing.

Curious to hear feedback on the design, performance, potential applications, or any weaknesses you might spot. Thanks!

Comments

thomaskoopman•8mo ago
Very cool, fast and looks like it should vectorize too. Do you have a jump function for parallel seeding?

How did you come up with this, some number-theoretic basis or more experimental?

Mark Carney at Davos 2026

https://twitter.com/MarkJCarney/status/2013637218997301311
1•hunglee2•11s ago•0 comments

The Lake Peigneur Drilling Disaster

https://www.amusingplanet.com/2022/04/the-lake-peigneur-drilling-disaster.html
1•antondd•2m ago•0 comments

The percentage of Show HN posts is increasing, but their scores are decreasing

https://snubi.net/posts/Show-HN/
1•plastic041•7m ago•0 comments

Show HN: SKILL.md Hub

https://openskills.space
1•onurkanbkrc•9m ago•0 comments

Show HN: Flying-Bird-Wallpaper – Open-Source Live Wallpaper

https://github.com/OXOYO/Flying-Bird-Wallpaper
1•OXOYO•13m ago•0 comments

Making Gaussian Splats Searchable

https://spatialview.io/blog/3d-semantic-search/
1•cpk26•21m ago•1 comments

EU moves closer to using its trade bazooka against the US

https://www.politico.eu/article/eu-bazooka-trade-us-greenland-france-threat-nato/
3•saubeidl•21m ago•1 comments

Trump administration concedes DOGE team may have misused Social Security data

https://www.politico.com/news/2026/01/20/trump-musk-doge-social-security-00737245?cid=apn
5•riffraff•27m ago•1 comments

The Agentic AI Handbook: Production-Ready Patterns

https://www.nibzard.com/agentic-handbook
3•SouravInsights•27m ago•0 comments

Show HN: Pushover Scheduler – Cron jobs made easy with Cloudflare Workers

https://github.com/Tomyail/pushover-scheduler
1•Tomyail•29m ago•0 comments

Show HN: Interview OS, a privacy-first job tracker

https://interviewos.xyz
2•iammhador•29m ago•0 comments

Minimal Launcher for Android

https://github.com/tanujnotes/Olauncher
2•vishnukvmd•35m ago•0 comments

Show HN: BlueMouse – open-source, local Socratic firewall for AI coding

https://github.com/peijun1700/bluemouse
1•bluemouse_ai•36m ago•0 comments

Romantics of the Distant

https://write.as/thoughts-on-nanofactories/romantics-of-the-distant
2•soundworlds•37m ago•0 comments

Fomu.cli

https://github.com/yuya-fujimoto/fomu.cli
1•yuyafujimoto•38m ago•0 comments

I Built an Accountability App After Failing Every Productivity System for 6 Year

https://testflight.apple.com/join/pSZMCBBg
1•hombreinabikin•40m ago•1 comments

Want to Keep Your Job? Buy Yourself a Blazer

https://www.bloomberg.com/opinion/articles/2026-01-21/dressing-like-a-slob-at-work-is-out-blazers...
1•petethomas•42m ago•0 comments

California sees 150k sign-ups for new data broker deletion request tool

https://www.cbsnews.com/sacramento/news/california-drop-tool-data-broker-deletion/
1•raybb•44m ago•0 comments

Agentic Memory: Unified Long-Term and Short-Term Memory Management for Agents

https://www.alphaxiv.org/abs/2601.01885
2•manthangupta109•46m ago•0 comments

Amthropic CEO claims we are 1yr away where AI can do everything SWEs

https://twitter.com/i/status/2013682941201678804
5•thewhitetulip•56m ago•2 comments

Trump admin sought redactions on China war game report warning

https://www.foxnews.com/politics/trump-admin-sought-redactions-key-china-war-game-report-warning-...
2•mudil•1h ago•0 comments

Vibe Coding Is Over, Now Just "Coding"

https://upstreamutopia.com/articles/?id=20260121-060942-vibe-coding-is-over,-now-ju
3•upstreamutopia•1h ago•0 comments

EU plans cybersecurity overhaul to block foreign high-risk suppliers

https://www.bleepingcomputer.com/news/security/eu-plans-cybersecurity-overhaul-to-block-foreign-h...
3•Yularar•1h ago•0 comments

Why neither Asia nor the US has produced a rival to ASML

https://www.ft.com/content/e47375fb-8c9f-4a4f-8526-8d46ededb805
3•perihelions•1h ago•1 comments

Curl removes bug bounties because of AI slop

https://etn.se/index.php/nyheter/72808-curl-removes-bug-bounties.html
72•jnord•1h ago•10 comments

Newbridge Cutlery to cease production of silver-plated tableware

https://www.rte.ie/news/business/2026/0120/1554085-newbridge-cutlery-company-to-close-factory/
1•austinallegro•1h ago•0 comments

Wolfi: Linux OS by Chainguard closed now for OSS

https://github.com/orgs/wolfi-dev/discussions/77550
1•shyim•1h ago•1 comments

Understanding Modern AI Is Understanding Embeddings: A Guide for Non-Programmers

https://sgnt.ai/p/embeddings-explainer/
3•dekervin•1h ago•0 comments

Show HN: Upgrade from Ralph to Eric for a more autonomous AI

https://dbuild.dev/blog/black-hole-from-ralph-to-eric/
2•Dbuild•1h ago•0 comments

Token Issuer Metadata: A Proposal for Config-as-Code SSO

https://docs.meetchar.ai/explanation/token-issuer-metadata
1•miguelspizza•1h ago•0 comments