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

Python Is Dead

https://calebfenton.substack.com/p/python-is-dead
1•nlehuen•57s ago•0 comments

Amazon AI Cancelling Webcomics

http://www.kleefeldoncomics.com/2026/04/amazon-ai-cancelling-webcomics.html
1•vmbrasseur•1m ago•0 comments

TX Tesla driver narrowly avoids disaster when autopilot engages at RR crossing

https://www.fox4news.com/news/texas-tesla-autopilot-drives-through-railroad-crossing
1•1vuio0pswjnm7•3m ago•0 comments

The Great AI Layoff Boomerang. 55% of companies regret their AI-drven layoffs

https://medium.com/@curiouser.ai/the-great-ai-layoff-boomerang-68e38c88fa7d
3•aussieguy1234•3m ago•1 comments

The Infinity Man

https://thechipletter.substack.com/p/the-infinity-man
1•gmays•3m ago•0 comments

Robot club vs. 5 crazy holes [video]

https://www.youtube.com/watch?v=2OfjZ3ORJfc
1•JKCalhoun•4m ago•0 comments

Aggregated interviews on how YC W26 founders build internal AI employees

https://www.humanbehavior.co/blog/topic/ai-employees-inside-founders-agent-workflows
1•SkylerJi•8m ago•1 comments

I embedded Sigil's docs in its CLI so LLMs can write Sigil

https://inerte.github.io/sigil/articles/sigil-ships-embedded-docs-for-llm-cold-starts/
1•inerte•8m ago•0 comments

PeonPing: Sound packs for Claude, Codex, Cursor, and other AI coding agents

https://www.peonping.com/
1•tawb•9m ago•0 comments

Energy and Human Ambitions on a Finite Planet (2021)

https://escholarship.org/uc/item/9js5291m
1•measurablefunc•13m ago•0 comments

Context Lake: A System Class Defined by Decision Coherence

https://arxiv.org/abs/2601.17019
1•alexkimball•13m ago•0 comments

From apps to infrastructure: martech's most important migration

https://newsletter.chiefmartec.com/p/from-apps-to-infrastructure-martech-s-most-important-migration
1•mooreds•14m ago•0 comments

Introduction to Recursive-Mode

https://recursive-mode.dev/introduction
1•gmays•16m ago•0 comments

Tesla "Full Self-Driving" drives through RR crossing barriers in viral video

https://electrek.co/2026/03/09/tesla-fsd-drives-through-railroad-crossing-barriers-viral-video/
2•1vuio0pswjnm7•17m ago•0 comments

Show HN: Sudomake Friends, personalized AI personas in a Telegram group chat

https://github.com/audiodude/sudomake-friends/
1•audiodude•17m ago•0 comments

"Epicaricacy" (2025)

https://thisbugslife.com/2025/04/24/297655/
1•thomassmith65•20m ago•0 comments

On the scientific method and its application to the science of deep learning

https://jamiesimon.io/blog/on-the-scientific-method/
1•jamie-simon•22m ago•0 comments

"attention is all you need" in screen recording [video]

https://www.youtube.com/watch?v=FMucMp2kU-8&list=PLbUXLHqCDLr3j_WrCB6q5EkEZmimqcGVC&index=2
1•jiabins0303•24m ago•0 comments

MacBook Neo isn't innovation: It's Apple correcting a story it pushed for years

https://www.windowscentral.com/hardware/apple/the-macbook-neo-isnt-innovation-its-apple-finally-o...
2•bentocorp•27m ago•1 comments

The Expensive Thing

https://ajeygore.in/content/the-expensive-thing
2•vinipolicena•28m ago•0 comments

Agent - Native Mac OS X coding ide/harness

https://github.com/macOS26/Agent
2•jv22222•34m ago•0 comments

The AI Market Is Hitting Peak Absurdity

https://garymarcus.substack.com/p/peak-absurdity-part-ii
9•drob518•37m ago•3 comments

Robot Police Dogs Powered by AI Take over Atlanta's Streets

https://www.newsweek.com/robot-police-dogs-powered-by-ai-take-over-atlantas-streets-11782889
3•xoa•39m ago•0 comments

Show HN: I built a Wikipedia based AI deduction game

https://sleuththetruth.com/
2•brikym•41m ago•0 comments

Claude.md Scorer: paste your file, get rubric score and rewrites

https://claude-md-scorer.surge.sh
1•autonomykit•42m ago•0 comments

Durable Object alarm loop: $34k in 8 days, zero users, no platform warning

6•thewillmoss•45m ago•0 comments

Entasis

https://en.wikipedia.org/wiki/Entasis
1•nomilk•47m ago•0 comments

How the Bitcoin protocol works (2013)

https://michaelnielsen.org/ddi/how-the-bitcoin-protocol-actually-works/
1•downbad_•48m ago•0 comments

The first graffiti wall (online)

https://freestencilmaker.com/the-wall
1•superluvdub•50m ago•1 comments

Chinese Electrotech Is the Big Winner in the Iran War

https://paulkrugman.substack.com/p/chinese-electrotech-is-the-big-winner
4•MaysonL•56m ago•0 comments