frontpage.
newsnewestaskshowjobs

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•1y 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•1y 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?

A few tips from the (startup) trenches for managing stress

https://vishal.rs/essay/habits-that-will-keep-the-stress-under-control
1•vishalontheline•56s ago•0 comments

Kilo Code has been acquired by Anaconda

https://www.anaconda.com/blog/anaconda-acquires-kilo-code
1•doanbactam•1m ago•0 comments

Q-Day is coming, and it might break the internet

https://www.rnz.co.nz/news/world/724214/q-day-is-coming-and-it-might-break-the-entire-internet
3•billybuckwheat•2m ago•0 comments

Neanderthals, modern humans may have shared culture 59,000 years ago in Turkey

https://www.livescience.com/archaeology/neanderthals/modern-humans-and-neanderthals-may-have-shar...
3•gmays•10m ago•0 comments

AI-generated women are spreading disinformation about Singapore on TikTok

https://www.channelnewsasia.com/singapore/tiktok-ai-women-disinformation-deepfake-presenters-6250271
2•gnabgib•14m ago•0 comments

'We decided not to limit VPNs': UK government U-turns on age-gating VPNs

https://www.techradar.com/vpn/vpn-privacy-security/we-decided-not-to-limit-vpns-uk-government-u-t...
3•iamnothere•15m ago•1 comments

When the Wildfires Rage, Who Gets to Breathe First?

https://indigenousinsider.substack.com/p/when-the-wildfires-rage-who-gets
1•indigodaddy•16m ago•0 comments

Moe P. Wellington

https://objkt.com/users/tz1YdveLn8id6Wk9X2JGsWsJj7qZodJ1XsKT/created
1•gdss•19m ago•0 comments

Show HN: I made a local image compressor to save you from popups andsubscription

https://compressor.conutil.com
2•mahmedalam•21m ago•1 comments

Wrote a tiny version of argp for CLI parsing in embedded environments

https://github.com/zkwinkle/tiny_argp
1•zkwinkle•25m ago•1 comments

Show HN: A cross-platform app for meeting notes and items that don't get lost

https://github.com/kestermckinney/ProjectNotes
1•kestermckinney•32m ago•0 comments

Bluesky Trademarks ATProto

https://atproto.com/blog/at-protocol-trademark
2•chaosharmonic•33m ago•0 comments

Cybernetic Culture Research Unit Archive

https://ccru.is-lost.org/
1•snorbleck•35m ago•0 comments

Tlbic: A localized, non-speculative basic income for societal resilience

https://drive.google.com/file/d/1BzNLajzFjxUTD3Xmr6NhiDblBz4XUGeY/view?usp=drive_link
2•michikawa59•39m ago•4 comments

Ask HN: Is anyone else feeling bad about Reddit's mechanisms

1•SmolSpideritito•41m ago•3 comments

History of Web Hosting

https://history-of-webhosting.exe.xyz
1•indigodaddy•44m ago•0 comments

A Gang of Thieves Pulled Off a Multimillion-Dollar Data Center Heist

https://www.nytimes.com/2026/07/12/magazine/data-center-heist.html
3•tysone•46m ago•0 comments

Performing live migrations of VMs at scale

https://www.sailresearch.com/blog/performing-live-migrations-of-massive-vms-at-scale
1•patrickdevivo•46m ago•0 comments

Telemedicina Para Venezuela

https://latydo.com/
2•latydo_33•51m ago•0 comments

Ban on broadcasting: EU Court clarifies that it also applies to free websites

https://www.eunews.it/en/2026/07/02/ban-on-broadcasting-russia-today-the-eu-court-clarifies-that-...
1•jruohonen•51m ago•0 comments

ArcBrush 1.5 – Node-based image editor (OCIO, OpenEXR, 97 nodes)

https://arcbrush.com/press/arcbrush-1-5/
2•albiabia•52m ago•0 comments

Syncthing for Dotfiles: Sync vs. Manage

https://sumguy.com/syncthing-for-dotfiles/
1•twp•57m ago•0 comments

Manual Work Is a Bug

https://queue.acm.org/detail.cfm?id=3197520
4•Anon84•1h ago•1 comments

Rethinking the Evaluation of Harness Evolution for Agents

https://arxiv.org/abs/2607.12227
3•Anon84•1h ago•0 comments

Generative AI is an Engineering Disaster

https://www.theatlantic.com/technology/2026/07/generative-ai-engineering-disaster/687901/
4•mizzao•1h ago•1 comments

What the I2Coalition Article Misses About DNS Abuse

https://circleid.com/posts/what-the-i2coalition-article-misses-about-dns-abuse
1•jruohonen•1h ago•0 comments

DoorDash CLI

https://twitter.com/andyfang/status/2077516962515599799
2•whalesalad•1h ago•0 comments

Skills Asset Protocol

https://neverhandedover.com
1•aznatkoiny•1h ago•0 comments

Fusing a 27B ternary LLM's whole decode step into one CUDA kernel

https://twitter.com/Akashi203/status/2077552491567157733
1•Jr23_xd•1h ago•0 comments

IBM stock closes down more than 25% after preannounced earnings results

https://finance.yahoo.com/markets/stocks/article/ibm-stock-closes-down-more-than-25-after-preanno...
3•kaycebasques•1h ago•1 comments