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?

RustDrop – privacy-first P2P file transfer for your LAN (Rust)

https://github.com/hakuxyz/rustdrop
1•xyzhaku•1m ago•0 comments

How AI may drive union-resistant tech workers to the bargaining table

https://www.theguardian.com/technology/2026/jul/21/ai-tech-workers-unionize
1•civilchaos•1m ago•0 comments

Avoid Public Functions Calling Other Public Functions

https://matklad.github.io/2026/10/29/pub-calls-pub.html
1•birdculture•6m ago•0 comments

Wikimedia Foundation amicus brief regarding OpenAI [pdf]

https://commons.wikimedia.org/w/index.php?title=File%3A26.10.29_WMF_motion_and_amicus_In_re_OAI.p...
1•gnabgib•9m ago•0 comments

Amazon made the AUX input on older Alexa devices less useful

https://www.engadget.com/2300219/amazon-made-alexa-devices-aux-port-less-useful/
1•NordStreamYacht•10m ago•0 comments

The Elephant-Goldfish Model plugin for spec-driven AI development

https://opensource.googleblog.com/2026/10/introducing-elephant-goldfish-model-plugin.html
1•derekleeth•10m ago•0 comments

Show HN: Vela, a New Linux Desktop Environment

https://velade.org/blog/vela-0-1/
2•BrandoDev_it•14m ago•0 comments

Bashttpd: A web server written in bash

https://github.com/avleen/bashttpd
1•denysonique•16m ago•0 comments

Wikimedia Foundation Tries to Save Itself by Brokering AI Copyright Deal

https://gizmodo.com/wikimedia-foundation-tries-to-save-itself-from-oblivion-by-brokering-ai-copyr...
4•CharlesW•20m ago•0 comments

Tell HN: ChatGPT and Codex usage will be combined

2•FergusArgyll•22m ago•0 comments

Analysts find looming launch crisis is "more severe" than anticipated

https://arstechnica.com/space/2026/10/analysts-find-looming-launch-crisis-is-more-severe-than-ant...
1•rbanffy•25m ago•0 comments

Toit v2.0.0

https://toit.io/blog/toit-v2-0-0/
1•floitsch•25m ago•0 comments

Docsferatu: An agent that drafts docs PRs while you sleep

https://www.inngest.com/blog/docsferatu-an-agent-that-drafts-docs-prs-while-you-sleep
1•Linell•27m ago•0 comments

Treatments for age-related infertility are being developed at last

https://www.economist.com/science-and-technology/2026/10/26/treatments-for-age-related-infertilit...
2•Anon84•30m ago•0 comments

Supersonic airliner in doubt as company shifts to powering AI data centers

https://arstechnica.com/gadgets/2026/10/united-airlines-ceo-doubts-supersonic-airliner-from-boom-...
1•rbanffy•31m ago•0 comments

Show HN: Bobby – Over Engineering PR Reviews

https://bobby.viraj.computer/
1•angrybayblade•35m ago•0 comments

Show HN: BBRouter – Ben Eater's 8-bit computer, simulated on 3D breadboards

https://bbrouter.com/bbrouter/ben-eater-sap-1
2•creack•40m ago•0 comments

Donnie Darko: A Mind-Twisting Cult Classic Turns 25

https://www.nytimes.com/2026/10/26/movies/donnie-darko-oral-history-25-year-anniversary.html
4•gnabgib•44m ago•1 comments

Honest Government Ad – AI Data Centres [video]

https://www.youtube.com/watch?v=kON2ZI2BNj8
2•SockThief•45m ago•0 comments

Honest Government Ad – The Great FuckOffening [video]

https://www.youtube.com/watch?v=v_Lua2Xzg5s
1•SockThief•47m ago•0 comments

Aesthetic City Builder

https://game.theaestheticcity.com
2•idbnstra•47m ago•0 comments

Smear Campaign Towards GrapheneOS

https://grapheneos.social/@GrapheneOS/117537776055163844
7•monneyboi•51m ago•0 comments

Chainalysis security incident with customers PII compromised

https://www.chainalysis.com/blog/security-incident-october-30/
3•androidnstuff•55m ago•0 comments

Constructing a Quine from Kleene's Second Recursion Theorem

https://emarzion.github.io/KSRT/
1•mkckto•55m ago•0 comments

Frontiers – Association between statin therapy and dementia risk

https://www.frontiersin.org/journals/pharmacology/articles/10.3389/fphar.2026.1915633/full
1•bilsbie•56m ago•0 comments

A collection of custom M-VAVE FM1 Firmware

https://fm1-editor.com/firmware/
1•natebc•1h ago•0 comments

A developer recreated a 1990s 486 PC in JavaScript

https://www.tomshardware.com/video-games/retro-gaming/developer-builds-a-complete-intel-486-pc-em...
3•zomtorg•1h ago•1 comments

Work Requirements for Trick-or-Treaters

https://morewrong.lol/?post=work-requirements-trick-or-treaters
5•HeliumHydride•1h ago•0 comments

Inverse Zitron: An Investment Strategy

https://chalmovsky.com/posts/inverse-zitron
12•chalmovsky•1h ago•8 comments

Ultron – an uncensored agent that can do your coding

https://chat.gtgimage.com
1•JaredtheG•1h ago•0 comments