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?

Trapped Equilibria: When adoption isn't a legal move

https://kunnas.com/articles/trapped-equilibria
1•ekns•1m ago•0 comments

HN: Conversion.business – A Gamified Alternative to reCAPTCHA

https://conversion.business
1•katieP14•1m ago•0 comments

Ludum Dare will officially end in October 2028

https://www.gamedeveloper.com/production/ludum-dare-will-officially-end-in-october-2028
1•doppp•3m ago•0 comments

Show HN: Why Compiler Engineers Rarely Use Strassen's Algorithm for Fast Matmul

1•muragekibicho•3m ago•0 comments

A USB-connected speaker can infect a PC without ever being touched

https://arstechnica.com/security/2026/06/highly-reviewed-speaker-can-be-hacked-over-the-air-to-in...
1•codezero•4m ago•0 comments

Cabel Sasser "Here's an easter egg in the new Lego Batman"

https://social.panic.com/@cabel/116710623616975906?kjy=spring
1•MaysonL•5m ago•0 comments

GitHub nukes 70 Microsoft repos, breaks pipelines, suspected worm infections

https://www.theregister.com/security/2026/06/08/github-nukes-70-microsoft-repos-amid-suspected-wo...
5•beardyw•7m ago•1 comments

PepsiCo has 41 driverless trucks on the road bringing technology into mainstream

https://www.wsj.com/business/logistics/driverless-trucks-pepsico-texas-arizona-arkansas-ee4495f0
3•bookofjoe•8m ago•1 comments

AI Can Reverse-Engineer Hardware. I Can't Turn Off My Own Alarm

https://www.sudomoin.com/p/ai-can-reverse-engineer-hardware-i-can-t-turn-off-my-own-alarm
2•dimitri-vs•8m ago•0 comments

Ask HN: Grand and Tax Credit Tracker

1•edimaudo•8m ago•0 comments

Foxlore – subscription-free notes app with powerful search, genuine privacy

3•searchliness•8m ago•0 comments

How Microsoft is migrating repositories to GitHub

https://devblogs.microsoft.com/devops/how-microsoft-is-migrating-repositories-to-github/
1•url00•9m ago•0 comments

I tried to fill the void Omegle left and it is going pretty well

https://mindfuse.io/random-voice-chat
1•Joeribon•10m ago•0 comments

Teaching LLMs to one-shot complex back ends at scale

https://blog.redplanetlabs.com/2026/05/28/teaching-llms-to-one-shot-complex-backends-at-scale-rep...
1•drob518•11m ago•0 comments

30K Users WTF

https://weatherhubapp.com/
1•WeatherHub•13m ago•0 comments

Lies We Tell Ourselves About Email Addresses

https://gitpush--force.com/commits/2026/06/lies-we-tell-ourselves-about-email/
3•theanonymousone•14m ago•1 comments

Dropstone – a coding agent running DeepSeek/Kimi on US no-retention servers

https://blankline.org/research/dropstone-1-5
1•DarenWatson•14m ago•0 comments

How to Set Up DMARC for Google Workspace: A Step-by-Step Guide

https://dmarcguard.io/blog/dmarc-google-workspace-setup/
1•meysamazad•14m ago•0 comments

Water Is Strange

https://bfloeser.de/water-is-strange
2•meysamazad•14m ago•0 comments

Dhewm3 1.5.5 Released

https://dhewm3.org/#dhewm3-1.5.5
1•klaussilveira•16m ago•0 comments

Flying cars are finally arriving

https://www.notboring.co/p/expanding-the-radius-of-daily-life
1•tsungxu•16m ago•0 comments

Ask HN: Which companies gained a competitive edge purely via engineering?

1•j1000•17m ago•0 comments

Artists`re making antislop to rebel against AI:It's been rammed down our throats

https://www.theguardian.com/technology/2026/jun/08/anti-slop-ai-art
3•rndsignals•18m ago•0 comments

Oxford University discloses data breach after careers platform hack

https://www.bleepingcomputer.com/news/security/oxford-university-discloses-data-breach-after-care...
2•Brajeshwar•19m ago•0 comments

Odroid-H5 SBC with 4xM2 Slots and 10GbE

https://www.hardkernel.com/shop/odroid-h5/
2•andruby•20m ago•1 comments

Natural England demands salt marshes before Hinkley Point C opens

https://www.msn.com/en-gb/news/other/natural-england-demands-salt-marshes-before-hinkley-point-c-...
1•ksec•20m ago•1 comments

sama: "man the early days of the internet were so special"

https://twitter.com/sama/status/2062661191969972645
2•smlavine•20m ago•0 comments

Who Runs Your Rust Future? Hands-On Intro to Async Rust

https://aibodh.com/posts/async-rust-chapter-1-hands-on-intro-to-async-rust/
1•febin•23m ago•0 comments

Successful Arbitrage, or the Art of Always Landing on Its Feet Like a Cat

https://www.functori.com/blog/blog-successful-arbitrage.html
1•cago•23m ago•0 comments

Could this be the perfect IT-escape [video]

https://www.youtube.com/watch?v=W6aJCSi7qEQ
1•raadore•23m ago•0 comments