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?

Show HN: FileoPDF, PDF tools that process your files in the browser

https://www.fileopdf.com/en
1•Horatio148•1m ago•0 comments

Show HN: A Safari extension to accelerate animated WebP images

https://github.com/IliaMManolov/safari-animated-webp-extension
1•76SlashDolphin•4m ago•0 comments

SQLAlchemy 2.1.0 Released

https://www.sqlalchemy.org/blog/2026/09/24/sqlalchemy-2.1.0-released/
1•kbumsik•5m ago•0 comments

Terence Tao: Math 2.0 [pdf]

https://teorth.github.io/tao-web/slides/math-2-0-caltech-2026.pdf
1•Anon84•6m ago•0 comments

Show HN: My radio station calls its listeners

https://canarics.com/radio
3•attels33•13m ago•0 comments

MicroG: [Bounty] RCS Support [$14999]

https://github.com/microg/GmsCore/issues/2994
1•BoingBoomTschak•14m ago•0 comments

About the Book: Solving the Bottom Turtle

https://spiffe.io/book/
1•cgeier•14m ago•1 comments

AWS AgentCore security undone by prompt requesting credentials

https://www.theregister.com/security/2026/10/09/aws-agentcore-security-undone-by-prompt-requestin...
1•sbulaev•16m ago•0 comments

How HN: Go-dev-auth zero-dependency authentication library for Go

https://github.com/go-dev-auth/go-dev-auth
3•BisratMelak•17m ago•0 comments

Choreographic Programming in Rust

https://github.com/hibanaworks/hibana
1•o8vm•18m ago•1 comments

Measuring Cryptanalytic Effort

https://bitsofwork.org
1•torutofu•18m ago•0 comments

Twenty-two pending curl vulnerabilities

https://daniel.haxx.se/blog/2026/10/07/twenty-two-pending-curl-vulnerabilities/
1•Tomte•20m ago•0 comments

Bot traffic plunged to near 0 following the strike on its Vladimir data center

https://bsky.app/profile/perevaa.bsky.social/post/3mxlm6w2wcs26
3•PLenz•23m ago•0 comments

Memory Management (2022)

https://signalsandthreads.com/memory-management/
1•tosh•28m ago•0 comments

Building Houses with Rice Waste

https://www.bbc.com/future/article/20261009-the-houses-made-from-rice-husks
2•ranit•30m ago•0 comments

Singapore's government team that kills its own products

https://www.businesstimes.com.sg/singapore/inside-singapores-government-team-kills-its-own-products
3•doppp•31m ago•0 comments

Show HN: The great-grandfather of Oberon: Algol 60 running on LuaJIT

https://github.com/rochus-keller/Algol60
1•Rochus•41m ago•0 comments

Ferroni – Oniguruma's regex engine, modernized in Rust

https://ferroni.dev/
1•indentit•41m ago•0 comments

Taiwan man won lawsuit but jailed for using robot vacuum to record wife's affair

https://www.scmp.com/news/people-culture/trending-china/article/3365381/taiwan-man-wins-lawsuit-g...
2•nephihaha•42m ago•1 comments

Trama – See your agent's changes as state machines before any code

https://github.com/nicchia-code/trama
2•nicchia•45m ago•0 comments

Show HN: Hexnoth. Dark fantasy turn-based tactics in the browser

https://hexnoth.com/
1•jdzikowski•45m ago•0 comments

The maverick scientist trying to save coffee from extinction

https://economist.com/interactive/1843/2026/07/23/the-maverick-scientist-trying-to-save-coffee-fr...
1•andsoitis•45m ago•0 comments

Show HN: Claude Code Mode

https://github.com/gabe4coding/claude-code-mode
1•gabe4coding•46m ago•1 comments

Show HN: Termphin – Open-source SSH client whose sessions survive disconnects

https://github.com/Termphin/Termphin
1•mbadyl•54m ago•0 comments

You Can See the Results

https://docs.google.com/document/d/e/2PACX-1vQmQ6YjfD2BKWfhW8iKJJCqPygQfQpNMhF5qSwHkoJSt8d1GLPU4z...
1•GovNikoMLLee•58m ago•0 comments

Show HN: Gradually Loading Web Fonts

https://www.npmjs.com/package/invisible-ink
1•snshn•1h ago•1 comments

Can Switching Hands While I Masturbate Affect My Brain?

https://sex.cosmopolitan.com/pleasure/a73946773/masturbating-non-dominant-hand-good-for-brain/
5•snarky-comments•1h ago•2 comments

What a US purchase costs delivered to 16 countries

https://www.refurb.me/import-costs
2•simoelalj•1h ago•0 comments

Fetching AMD SEV Reports (With Zig)

https://github.com/bschaatsbergen/zig-sev-guest
3•bschaatsbergen•1h ago•1 comments

Don't Put Tilde In Your Path

https://disconnect3d.pl//2026/10/02/dont-put-tilde-in-your-path/
29•arusekk•1h ago•2 comments