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?

Personal agents are not aligned with consumer long-term interests

https://twitter.com/BrendanFalk/status/2109068824293351774
1•brendanfalk•23s ago•0 comments

Vision for New Autonomous Warfare Command Laid Out by Pentagon

https://www.twz.com/news-features/vision-for-new-autonomous-warfare-command-laid-out-by-pentagon
1•cisc•1m ago•0 comments

How to Recover Your Yahoo! Groups from the Internet Archive (2021)

https://datahorde.org/how-to-recover-your-yahoo-groups-from-the-internet-archive/
1•turtleyacht•5m ago•0 comments

Show HN: Dewey: a connectome-driven fruit fly for your macOS menu bar

https://github.com/JorenSix/Dewey
1•joren-•6m ago•0 comments

This Website Is Now Made in Swift

https://sindresorhus.com/blog/swift-website
1•ingve•9m ago•0 comments

Eye Cells May Have Been Rejuvenated for the First Time in People

https://time.com/article/2026/10/08/eye-cells-rejuvenated-for-the-first-time-in-people/
1•davidrjones1977•13m ago•1 comments

Show HN: Aporium – A UMAP galaxy of 5800 philosophy excerpts in conversation

https://www.aporium.app/explore
1•kevinjacobh•14m ago•0 comments

Silicon Valley's Dream City Has Crashed into Small-Town Politics

https://www.wsj.com/us-news/silicon-valleys-dream-city-has-crashed-into-small-town-politics-4521d1bd
3•Anon84•22m ago•0 comments

Ask HN: Would you support a law banning filming people in public?

1•dfps•22m ago•2 comments

Ask HN: Built a benchmark? Would love to learn

1•ramstar3000•25m ago•0 comments

FrameLab – FPS calculator for PC games, checked against real hardware runs

https://framelab-fps.com/uk
1•BMatiashchuk•25m ago•0 comments

Genius or Mid Life Crisis Lol

https://www.reddit.com/r/founder/comments/1x25aws/genius_or_midlife_crisis/
1•jimmyshoez•28m ago•0 comments

Two Kings of New York: Visualizing the Careers of Jay-Z and Nas

https://streettaichi.com/pages/kings-of-new-york
2•laybak•30m ago•0 comments

Show HN: Open-Source Canva Alternative

https://github.com/shaongitbd/doory
1•Aditya_1•33m ago•0 comments

'AI slop' hides the conversations we should be having

https://doi.org/10.1038/s44387-026-00161-8
1•DeepLogin•34m ago•0 comments

Every US Electrical Outlet Explained [video]

https://www.youtube.com/watch?v=n_1wzYQwnts
4•zdw•37m ago•2 comments

Why OpenAI's latest results dump has left mathematicians in shock

https://theconversation.com/is-this-the-mathocalypse-why-openais-latest-results-dump-has-left-mat...
2•ColinWright•42m ago•1 comments

Amiga Demoscene for Beginners

https://spookbench.net/blog/amiga_dmscn/part0.html
1•nickt•45m ago•0 comments

Temporal Continuity API (Groundbreaking)

https://api.rscapex.com
1•TomKrysos•48m ago•0 comments

PwnPad – hardware hacking platform built for practical learning

https://github.com/twelvesec/PwnPad
3•therepanic•58m ago•0 comments

Build your own decision model

https://nishtahir.com/build-your-own-decision-model/
33•softwaredoug•1h ago•2 comments

A black box recorder for contracts

https://lexifina.com/blog/a-black-box-recorder-for-contracts
2•alansaber•1h ago•0 comments

Show HN: Convertix – A free, client-side QR code generator with customization

https://convertix-fast-imager-co.blogspot.com/p/convertix-free-online-qr-code-generator.html
3•tanjirods•1h ago•0 comments

A mountain of AI math, a few precious bytes

https://blog.adafruit.com/2026/10/10/a-mountain-of-ai-math-a-few-precious-bytes/
1•abetusk•1h ago•0 comments

Ask HN: What's your favorite children's books?

2•lgregg•1h ago•5 comments

Show HN: ManimGX – Manim's API on a Rust/wgpu engine, for 3D videos in Python

https://github.com/academa-labs/manimgx
3•sinaatalay•1h ago•0 comments

Show HN: Mailbox Viewer – publish FOIA email dumps as a static Gmail-like site

https://github.com/rahimnathwani/mailbox-viewer
1•rahimnathwani•1h ago•0 comments

Wilmund

https://wilmund.com/
2•WillDaSilva•1h ago•0 comments

Back to School with High-Speed Attack Drones

https://www.wsj.com/opinion/stopping-school-shootings-with-security-drones-44e22f75
2•fortran77•1h ago•1 comments

A Stark Warning from a Former AI Doomer

https://podcasts.apple.com/us/podcast/a-stark-warning-from-a-former-ai-doomer/id1515786216?i=1000...
8•_virtu•1h ago•0 comments