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?

Language-like structure arises in learned signaling: evidence from birdsong

https://www.science.org/doi/10.1126/sciadv.aea3015
1•wslh•1m ago•0 comments

Tonnes of nuclear material found at Syria site, UN atomic watchdog says

https://www.rte.ie/news/middle-east/2026/0818/1588407-syria-nuclear/
1•wslh•8m ago•0 comments

Qwen3.8-27B make medium the default effort level instead of xhigh

https://github.com/alainnothere/llama.cpp/blob/disk-cache-eviction/models/templates/Qwen3.8-27B-m...
1•xlayn•11m ago•1 comments

Amazon scans and destroys books to comply with copyright law

https://bsky.app/profile/steveklabnik.com/post/3mtejjs6s2c2y
3•platzhirsch•15m ago•2 comments

Proof-Carrying Pipelines: attest local gate runs so CI can skip re-execution

https://github.com/JackCid89/proof-carrying-pipelines
1•jackcid89•16m ago•0 comments

The Vietnam Binh Chau (Chau Tan) Late Tang Wreck

https://www.koh-antique.com/client/tangwreck/tangwreck.html
1•teleforce•19m ago•1 comments

How to build an eval set you can maintain

https://langfuse.com/academy/evaluate/choosing-what-to-evaluate
2•lotteverh•24m ago•0 comments

Do All Your Agents Need Models Like Claude 5 or GPT-5.6?

https://aimoway-lab.github.io/blog/articles/do-all-your-agents-really-need-models-like-claude-5-o...
2•AIMOWAY•28m ago•0 comments

The Integer

https://gist.github.com/17twenty/1f230ab8256f42d4cd3ba931b9bd440b
2•hactually•32m ago•0 comments

That Disgraceful, Disreputable, (Wonderful) Form of Punctuation: The Parenthesis

https://lithub.com/on-that-disgraceful-disreputable-wonderful-form-of-punctuation-the-parenthesis/
2•pseudolus•33m ago•0 comments

ServiceNow are pushing customers off SaaS – are other industries doing similar?

2•rorychatt•34m ago•1 comments

Netstate – US Business Data from Primary Sources

https://netstate.co
2•qitx•37m ago•0 comments

OpenAI announces slowing pace of development after hack by rogue agent

https://www.theguardian.com/technology/2026/aug/18/open-ai-pause-hack
2•pseudolus•39m ago•1 comments

Study Finds Outdated Ideas About Antibiotics Are Common

https://healthcare.utah.edu/newsroom/news/2026/08/always-finish-your-antibiotics-longer-better-ou...
2•gumby•39m ago•0 comments

China's LandSpace beats SpaceX with steel-booster recovery after orbital launch

https://www.scmp.com/news/china/science/article/3364492/chinas-landspace-beats-spacex-steel-boost...
3•decimalenough•41m ago•1 comments

Personetta – One YAML Persona for Cursor, Copilot, Claude, and Cline

https://github.com/EdwardAF-IT/Personetta
2•EdwardAF-IT•48m ago•0 comments

Follow-Up Thoughts on Watermarking Schemes for AI-Generated Text

https://daringfireball.net/2026/08/follow-up_thoughts_on_watermarking
2•pinkmuffinere•49m ago•0 comments

Tiny satellite will use the dark side of the Moon as a shield

https://www.cam.ac.uk/research/news/tiny-satellite-will-use-the-dark-side-of-the-moon-to-eavesdro...
7•NordStreamYacht•50m ago•1 comments

The Economics and Engineering of On-Premises LLMs

https://cacm.acm.org/blogcacm/the-economics-and-engineering-of-on-premises-llms/
2•pseudolus•50m ago•0 comments

Are there space filling curves for the Hilbert Cube? (2010)

https://mathoverflow.net/questions/34982/are-there-space-filling-curves-for-the-hilbert-cube
3•peter_d_sherman•54m ago•0 comments

Calling Python from Matlab

https://www.mathworks.com/campaigns/offers/calling-python-from-matlab-cheat-sheet.html
2•teleforce•55m ago•0 comments

Fideliya Pass: Loyalty Program and More

https://www.fideliyapass.com/
2•zakox•1h ago•0 comments

New paper shows that 37% of workers in US saw real wages decline from 2021-2024 [pdf]

https://bfi.uchicago.edu/wp-content/uploads/2026/08/BFI_WP_2026-108-1.pdf
41•jplusequalt•1h ago•14 comments

What's New with Monitoring in PostgreSQL 19

https://clickhouse.com/blog/postgres-19-monitoring-whats-new
2•saisrirampur•1h ago•0 comments

Bonds Are Getting Hammered, and Wall Street Says the Rout Won't End Anytime Soon

https://www.wsj.com/finance/investing/bonds-are-getting-hammered-and-wall-street-says-the-rout-wo...
2•petethomas•1h ago•0 comments

Scientists stunned by children's lung recovery in ultra low emission zone

https://www.bbc.com/news/articles/c1l1r1zne1ro
16•dabinat•1h ago•1 comments

The Secret Killer of Startups: Low Ambition [video]

https://www.youtube.com/watch?v=ozhRhElbVcI
3•stuartaxelowen•1h ago•0 comments

Trump's Broken Promises, in 11 Charts

https://www.nytimes.com/interactive/2026/08/18/opinion/trump-economy-campaign-promises.html
5•whack•1h ago•0 comments

Rent's Rule

https://en.wikipedia.org/wiki/Rent%27s_rule
4•peter_d_sherman•1h ago•0 comments

The quest to find the best Calvin and Hobbes panel

https://www.polygon.com/best-calvin-and-hobbes-panel-ever/
3•thunderbong•1h ago•0 comments