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

We found cryptography bugs in the elliptic library using Wycheproof

https://blog.trailofbits.com/2025/11/18/we-found-cryptography-bugs-in-the-elliptic-library-using-...
1•crescit_eundo•1m ago•0 comments

Every shopping result is an ad

https://2zuz.com/articles/every-shopping-result-is-already-an-ad
1•pedrozieg•1m ago•0 comments

Some of your cells aren't genetically yours–what they tell us about life&death

https://www.nature.com/articles/d41586-025-04102-4
1•bookofjoe•1m ago•1 comments

Can chatbots craft correct code?

https://blog.trailofbits.com/2025/12/19/can-chatbots-craft-correct-code/
1•crescit_eundo•2m ago•0 comments

iPhone driving macOS 15.6, with native M4 driver partially patched for A18

https://twitter.com/khanhduytran0/status/2006592404045127835
1•nailer•4m ago•0 comments

Darwin the Man of His Times

https://aethermug.com/posts/darwin-the-man-of-his-times
1•mrcgnc•12m ago•0 comments

Automate Your Cycling Club

https://github.com/footflaps/ELSR-Website
1•pppone•12m ago•0 comments

Self hosted code repositories but anyone can contribute (Built on AT Proto)

https://tangled.org/
1•quaintdev•12m ago•0 comments

Show HN: Merchant, a lightweight ecommerce back end on Cloudflare Workers

https://merchant.dev
1•burcs•12m ago•0 comments

Python Numbers Every Programmer Should Know

https://mkennedy.codes/posts/python-numbers-every-programmer-should-know/
1•WoodenChair•14m ago•0 comments

Show HN: A minimal Python simulator to learn autonomous vehicle control

https://github.com/ShisatoYano/AutonomousVehicleControlBeginnersGuide
1•sy4310•16m ago•1 comments

An interactive archive of physics visualizations

https://github.com/llSourcell/physics
2•ddmng•19m ago•0 comments

2025 Letter

https://danwang.co/2025-letter/
2•Amorymeltzer•21m ago•0 comments

Poland races to build bomb shelters

https://www.ft.com/content/2382f486-46b0-460d-8f78-b7006b8ad5b4
1•perihelions•21m ago•0 comments

Unraveling the Mystery of Sea Wolves

https://mapleleafadventures.com/stories/wildlife/unraveling-the-mystery-of-sea-wolves/
1•thunderbong•22m ago•0 comments

Textiles 101: Fast Fiber Transform [video]

https://media.ccc.de/v/39c3-textiles-101-fast-fiber-transform
1•kmskontorp•23m ago•0 comments

Mine 160-bit primes with every git commit

https://textonly.github.io/git-prime/
1•keepamovin•27m ago•1 comments

CLP: Compress Your Logs. Search Without Decompression

https://github.com/y-scope/clp
1•ddmng•27m ago•1 comments

Concept of Ultra Cold Neutron Source at WWR-K Reactor (AlSUN)

https://www.mdpi.com/2624-8174/7/4/64
1•PaulHoule•30m ago•0 comments

Tell HN: Current gen AI is just the epitome of error-correcting codes

2•keepamovin•31m ago•2 comments

It's the gold standard of US climate research. Contrarians could write the next

https://www.eenews.net/articles/its-the-gold-standard-of-us-climate-research-contrarians-could-wr...
1•mold_aid•31m ago•1 comments

I built a public skill registry and MCP server so Codex can install new skills

1•iluxu•32m ago•0 comments

Show HN: ZScreenshot – Capture any viewport size without browser resize

https://ebot.jp/extensions/z-screenshot
3•zscreenshot•32m ago•2 comments

Learn Claude Code

https://github.com/shareAI-lab/learn-claude-code
2•ddmng•36m ago•1 comments

HOSTS.TXT

https://github.com/ttkzw/hosts.txt
1•exvi•36m ago•0 comments

Pelicans Riding a Bike

https://vectorart.ai/status
3•tm11zz•39m ago•1 comments

Medicine for Gpg.fail

https://crates.io/crates/signify-rs
1•hayali•41m ago•1 comments

Economic inequality does not equate to poor well-being or mental health

https://www.nature.com/articles/d41586-025-03833-8
2•delichon•43m ago•1 comments

Pyevidence: Practical Evidence Theory

https://github.com/emiruz/pyevidence
1•usgroup•43m ago•0 comments

Mastodon Stories for Systemd v259

https://0pointer.net/blog/mastodon-stories-for-systemd-v259.html
1•birdculture•43m ago•0 comments