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?

China's provinces asked to bail out risk-fraught regional banks

https://www.chinabankingnews.com/p/chinas-provinces-asked-to-bail-out
1•andsoitis•8m ago•0 comments

Publishers Are Preparing to Opt Out of Google Search

https://www.adweek.com/media/publishers-opt-out-google-search/
2•giuliomagnifico•11m ago•0 comments

Lisp as the Maxwell's Equations of Software

https://michaelnielsen.org/ddi/lisp-as-the-maxwells-equations-of-software/
1•andsoitis•11m ago•0 comments

Experiment with tiny quantum universe: time 'arises' from changes in disorder

https://www.sciencedaily.com/releases/2026/07/260709160632.htm
1•alok-g•12m ago•1 comments

Neuralwatt Doubling the Price

https://portal.neuralwatt.com/pricing
1•MehrdadKhnzd•13m ago•0 comments

The great AI data centre cover-up

https://www.ft.com/content/7800ba0f-1420-49fe-b260-9838632a19a4
1•1vuio0pswjnm7•20m ago•0 comments

AI Investors Buying Accounting Companies and Force Them to Use OpenAI [video]

https://www.youtube.com/watch?v=2dp98vEGWq0
2•xbmcuser•24m ago•0 comments

Zeno's Paradox and Infinite Sums – Lectures on Infinity (Lecture 1) [video]

https://www.youtube.com/watch?v=4Y9p0yp8Mow
2•FillMaths•25m ago•0 comments

Italy privacy watchdog fines Character.ai owner over age-check failures

https://www.reuters.com/business/italy-privacy-watchdog-fines-characterai-owner-over-age-check-fa...
1•1vuio0pswjnm7•26m ago•0 comments

Hypeplan: Turn plans into terminal keynote speeches

https://github.com/martinrue/hypeplan
1•afisxisto•26m ago•1 comments

Semantic Fingerprinting Made Easy

https://github.com/thorwhalen/guise
1•ankitg12•34m ago•0 comments

Show HN: Zero2Robot – free, open source interactive textbook for robot learning

https://zero2robot.com/
1•kaushikbokka•34m ago•0 comments

Ask HN: Recommend a Local LLM Setup (M2 Max, 9GB)

1•balivandi•36m ago•1 comments

Show HN: Short SciFi/Fantasy Index

https://quasar.fyi/
1•FifthRocket•37m ago•1 comments

Ask HN: How do I get immoral AI?

2•nasaok•38m ago•1 comments

Best Job Oriented Courses in India: Guide, Rules and Benefits

https://www.smfgindiacredit.com/knowledge-center/best-job-oriented-courses-in-india.aspx
1•saumyaraut11•39m ago•0 comments

Show HN: World Clock with Twilight/Night Overlayed on Map

http://nixon-development.com/worldclock/
1•plun9•42m ago•0 comments

Ukraine's Drones Are Now Reaching Siberia and Imperiling Russian Energy Assets

https://www.wsj.com/world/ukraines-drones-are-now-reaching-siberia-and-imperiling-russian-energy-...
2•JumpCrisscross•42m ago•1 comments

Tech volatility hits highest since dot-com bust next to S

https://fortune.com/2026/07/07/tech-volatility-hits-highest-since-dot-com-bust-sp-500/
2•1vuio0pswjnm7•44m ago•0 comments

Mercor acquires Deeptune to build AI training environments

https://www.mercor.com/blog/mercor-to-acquire-deeptune/
1•doppp•49m ago•0 comments

UN digital tech agency launches initiative to improve trust in AI agents

https://www.reuters.com/legal/litigation/un-digital-tech-agency-launches-initiative-improve-trust...
1•giuliomagnifico•49m ago•0 comments

China's public QR codes are being hijacked to redirect users to porn and scams

https://www.sixthtone.com/news/1018752/ScanScam:CriminalsRedirectChina’sPublicQRCodestoPorn
17•whiteblossom•49m ago•0 comments

Jukebox: Themes inspired by music cover art

https://github.com/nooneknowspeter/jukebox
1•nooneknowspeter•49m ago•0 comments

Counting ArXiv Delays

https://fi-le.net/arxiv/
1•fi-le•55m ago•0 comments

China recovers Long March 10B rocket

https://www.bilibili.com/video/BV1n6NL6fEP9
5•ycui7•57m ago•3 comments

OpenAI and Google sell AI models to blacklisted China groups

https://www.ft.com/content/5d6aafa1-5d47-4585-aa95-6ec06a6cd20f
2•JumpCrisscross•58m ago•0 comments

China recovers reusable rocket used in the maiden launch of Long March 10B

https://www.scmp.com/news/china/science/article/3360069/china-recovers-long-march-10b-reusable-ro...
6•yms_hi•59m ago•0 comments

Think you can win on prediction markets? Here's why you're more likely to lose

https://www.cbc.ca/news/business/prediction-market-skilled-traders-9.7258090
2•1vuio0pswjnm7•1h ago•1 comments

I wrote about how we used Conway's Law to fix legacy architecture

https://one2n.io/blog/fixing-legacy-architectures-with-conways-law
1•chinmay185•1h ago•1 comments

"Worthless Idiot, Donkey Head": Parodies of Pedantry on the Renaissance Stage

https://publicdomainreview.org/essay/parodies-of-pedantry/
2•lermontov•1h ago•0 comments