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?

IBM Quantum Nighthawk R2

https://www.ibm.com/quantum/blog/nighthawk-r2
1•fuglede_•54s ago•0 comments

Uber to cut over 3k jobs in major global restructuring

https://www.bbc.com/news/articles/cp3ky2w4y9no
3•vismit2000•4m ago•0 comments

The humanoid robots cleaning homes for $30 an hour

https://www.nbcnews.com/video/humanoid-robots-cleaning-homes-for-30-an-hour-269041733517
2•geox•5m ago•0 comments

Swedish elections could trim nuclear ambitions as left-wing challengers lead

https://www.spglobal.com/market-intelligence/en/news-insights/articles/2026/8/swedish-elections-c...
1•leonidasrup•5m ago•0 comments

Generative AI without guardrails can harm learning

https://pubmed.ncbi.nlm.nih.gov/40560616/
1•shymaple•6m ago•0 comments

Show HN: A daily briefing service-inspired by Huxe rip:(

https://genexperiences.com/nomenclature
1•quicheshore2003•12m ago•0 comments

Where Progress Is Visible, Completion Is Not

https://medium.com/@gurvinder372/article-3-where-progress-is-visible-completion-is-not-6633ddd433cc
1•gps372•14m ago•0 comments

Show HN: Single-File GGUF Inference

https://wasm-gguf.netlify.app/
1•badfox•15m ago•0 comments

Show HN: Brb – A Claude Code plugin for adhdmaxxing

https://github.com/usebrb/brb
1•SushantiKerani•17m ago•0 comments

Show HN: ReviewAssist-Uses coding session to fix code and guided PR walkthrough

https://reviewassist.dev/
1•udik2•25m ago•0 comments

The Wait Equation

https://xendo.bearblog.dev/the-wait-equation/
1•xendo•26m ago•0 comments

Uber allies with driver unions in bid to slow robotaxi rollout

https://www.ft.com/content/84171f91-5f39-4878-bbc5-e4e6262c4321
3•JumpCrisscross•29m ago•0 comments

'A crisis of authenticity': the truth about food influencers

https://www.theguardian.com/news/ng-interactive/2026/sep/03/a-crisis-of-authenticity-the-truth-ab...
1•rdmuser•31m ago•0 comments

KPMG warned Guggenheim unit over deficiencies in internal controls

https://www.ft.com/content/70e8e4e6-def9-4683-9aa3-4bf7351474e4
1•JumpCrisscross•32m ago•0 comments

Ask HN: Is anyone working on this? (Silent texts)

1•quantum2022•34m ago•0 comments

Ski Voice Coding for Claude Code now available on Linux

https://heyski.io/
3•jomon003•37m ago•1 comments

China's Private Sector Botnets Are Worth Disrupting

https://news.risky.biz/srsly-risky-biz-chinas-private-sector-botnets-are-worth-disrupting/
1•Yctg•37m ago•0 comments

The $250k Synth That Replaced Frank Zappa's Band [video]

https://www.youtube.com/watch?v=GMmBsbnmEME
1•thm•39m ago•0 comments

Birkhoff's Theorem (Relativity)

https://en.wikipedia.org/wiki/Birkhoff%27s_theorem_(relativity)
1•vismit2000•40m ago•0 comments

Show HN: The Simpsons Hit and Run Revamped

https://github.com/xaskasdf/The-Simpsons-Hit-and-Run
3•xaskasdf•46m ago•0 comments

What happens when your AI agent edits its own tests to pass?

https://bartholomew.info/
2•itsub_sa•47m ago•0 comments

AI Can Help Plan a Bioweapon

https://secondthoughts.ai/p/ai-can-help-plan-a-bioweapon-building
3•soltanov•50m ago•0 comments

WithExe: In-process EXE host for Windows x64

https://github.com/IgorTebelev/WithExe
1•AngryIgor•54m ago•1 comments

How viable is LLM-assisted 3D modeling in Blender?

https://twitter.com/louszbd/status/2093047548550525165
1•HyperAI•57m ago•0 comments

New York City Bans AI from Elementary Schools

https://gizmodo.com/new-york-city-bans-ai-from-elementary-schools-2000806172
2•the-mitr•57m ago•3 comments

Quasi-Bialgebra

https://en.wikipedia.org/wiki/Quasi-bialgebra
1•blizow•1h ago•0 comments

Trump's Lake Ontario push forces tech to pick a side

https://www.politico.com/news/2026/09/02/tech-lake-ontario-01062631
2•JumpCrisscross•1h ago•2 comments

Show HN: Free app for offline image search and smart file renaming

https://ringlochid.me/imagesage/index.html
1•ringlochid•1h ago•0 comments

Ask HN: A tool to share my data

1•roromainmain•1h ago•0 comments

Update on RISC-V Standards and Adoption at Hot Chips 2026

https://www.servethehome.com/update-on-risc-v-standards-and-adoption-at-hot-chips-2026/
3•lumpa•1h ago•0 comments