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•11mo 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•11mo 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?

AI for Systems: Using LLMs to Optimize Database Query Execution

https://www.together.ai/blog/using-llms-to-optimize-database-query-execution
1•matt_d•46s ago•0 comments

Side projects: perché falliscono (e come evitarlo davvero)

https://donatodelpeschio.it/blog/side-projects-perche-falliscono-come-evitarlo
1•donnyBlanko•4m ago•0 comments

Cyber 2028

https://www.analogue.computer/blog/cyber-2028
3•zeyu1337•13m ago•0 comments

It Has Always Been About Data, All the Way Down

https://khayyamguliyev.substack.com/p/it-has-always-been-about-data-all
3•khguliye•14m ago•0 comments

The Closing of the Frontier

https://tanyaverma.sh/2026/04/10/closing-of-the-frontier.html
4•FrasiertheLion•18m ago•0 comments

Show HN: 2048 with a Leaderboard

https://www.the2048league.com/
2•khet•20m ago•0 comments

Deep Work on macOS Starts with Context, Not Blockers

https://www.brnsft.com/blog/how-to-set-up-a-deep-work-system-on-mac-from-scratch
3•robertohanas•24m ago•0 comments

How Transistors Work (1995)

http://amasci.com/amateur/transis.html
2•downbad_•27m ago•1 comments

Bringing Rust to the Pixel Baseband

https://security.googleblog.com/2026/04/bringing-rust-to-pixel-baseband.html
2•dochtman•28m ago•0 comments

The Making of Dark Castle

https://www.gamedeveloper.com/business/the-making-of-i-dark-castle-i-an-excerpt-from-the-secret-h...
2•AntiRush•30m ago•0 comments

Strategy Letter V (2002)

https://www.joelonsoftware.com/2002/06/12/strategy-letter-v/
2•crescit_eundo•34m ago•0 comments

A Fake Screen Fixed My macOS Space Switcher

https://jorviksoftware.cc/notes/2026/04/11/when-the-stars-align-redux
2•jonathan_hollin•35m ago•0 comments

The Brutal Reality of Today's Job Market 2026

https://maxjobintel.online/
3•videobroker•36m ago•0 comments

Ukraine and Weapons of Mass Destruction

https://en.wikipedia.org/wiki/Ukraine_and_weapons_of_mass_destruction
5•chistev•39m ago•1 comments

Jet Fuel Crunch Is Getting Severe with No Reprieve in Sight for Airlines

https://www.wsj.com/business/airlines/jet-fuel-crunch-is-getting-severe-with-no-reprieve-in-sight...
5•bookofjoe•40m ago•1 comments

After Me(One encrypted vault. One QR code. Your family gets everything)

https://www.myafterme.co.uk/
2•elufadeju•42m ago•0 comments

I Pick My Stack for Vibe Coding

https://tildehacker.com/how-i-pick-my-stack-for-vibe-coding
2•tildehacker•43m ago•0 comments

Show HN: Git why – log your agent reasoning trace along your code

https://hexapode.github.io/git-why/
4•pierre•48m ago•0 comments

AGI Is the Wrong Word

https://breaking-changes.blog/agi-is-here-part-2/
2•oakhan3•49m ago•1 comments

Democratic AI to serve the public – OneProject.org

https://oneproject.org/how-to-make-ai-serve-the-public/
6•cucumberbund•52m ago•0 comments

NetWatch v0.11.0 – TUI network diagnostics, now with connection filtering

https://github.com/matthart1983/netwatch
2•matthart1983•53m ago•0 comments

I built a free 30-day habit tracker in Google Sheets

1•polaritymaking•55m ago•0 comments

Ask HN: What is the most annoying part of scheduling meetings?

1•preston-kwei•55m ago•3 comments

Chromium Fingerprint Simulation Framework Assessment

https://www.questcontents.com/2026/04/chromium-fingerprint-simulation.html
1•imarand•55m ago•0 comments

Ask HN: Has anyone reconsidered Antivirus software after recent security news?

3•pants2•1h ago•1 comments

PandemicAlarm – Free disease outbreak tracker aggregating WHO, CDC, and ProMED

https://pandemicalarm.com
1•PixelShipper•1h ago•0 comments

I built a free Canadian tax estimator for self-employed people

https://nextindata.substack.com/p/i-built-a-free-canadian-tax-estimator
1•nazanki•1h ago•0 comments

AI Is Tipping the Scales Toward Hackers After Mythos Release

https://www.nbcnews.com/tech/security/anthropic-claude-mythos-ai-hackers-cybersecurity-vulnerabil...
10•thywis•1h ago•5 comments

Transaction-level provenance for AI art certificate/signed/license on every sale

https://arcvelvetos.web.app/verify?id=AwCCW6DLQgA4s5XVZ86X&type=sale
2•PCasinoAVOS•1h ago•0 comments

AI still can't figure out PowerPoint

https://www.perspectives.plus/p/ai-still-cant-figure-out-powerpoint
2•jukkan•1h ago•0 comments