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?

David Hayes: Boring Software, Clear Incentives, and Better Checklists [audio]

https://maintainable.fm/episodes/david-hayes-boring-software-clear-incentives-and-better-checklists
1•mooreds•22s ago•0 comments

Coding Agent Horror Stories: The Command You Approved

https://www.docker.com/blog/coding-agent-horror-stories-the-command-you-already-approved/
1•soheilpro•27s ago•0 comments

Show HN: Chessvex – a chess roguelike in Rust and WebAssembly

https://chessvex.com/
1•diziet•36s ago•0 comments

What is Open Energy Modelling (open source?)

https://www.youtube.com/watch?v=YL3jibyEM9k
1•andreashd11•1m ago•0 comments

React Compiler Linting Just Got a Rust-Native Speedup in Oxlint

https://master.dev/blog/react-compiler-linting-just-got-a-rust-native-speedup-in-oxlint/
1•ibobev•4m ago•0 comments

Can AI Coexist with Privacy? Proton's Andy Yen Says It Will Have To

https://www.wired.com/story/the-big-interview-podcast-andy-yen-proton/
1•thm•4m ago•0 comments

A Multimedia Sketchpad

https://beyondloom.com/blog/sketchpad.html
2•ibobev•6m ago•0 comments

Know who sold your email address

https://13rt.com
1•kindsocial•6m ago•0 comments

The Art of Chip-8

https://beyondloom.com/blog/artofchip8.html
1•ibobev•6m ago•0 comments

Why I reimplemented LVM (with worse guarantees)

https://depot.dev/blog/why-i-reimplemented-lvm
1•eatonphil•6m ago•0 comments

US advisory body says China's data dominance gives it AI advantage

https://www.reuters.com/world/china/us-advisory-body-says-chinas-data-dominance-gives-it-ai-advan...
2•geox•7m ago•0 comments

Show HN: Code walkthroughs you can send as a file

https://guides.show/
2•ramoz•7m ago•0 comments

I let my AI scheme with my friends' AIs

https://rebeccadai.substack.com/p/little-guys-who-gossip-what-happens
1•randomparticlez•7m ago•0 comments

How the Heck Do Synthesizers Work?

https://perthirtysix.com/how-the-heck-do-synthesizers-work
1•shriracha•7m ago•0 comments

A Tale of Two Countries

https://www.brookings.edu/articles/a-tale-of-two-countries/
1•mooreds•7m ago•0 comments

Kernel 7.2: RK3588 media, smarter GPU memory, and Rust foundations

https://www.collabora.com/news-and-blog/news-and-events/kernel-7.2-rk3588-media,-smarter-gpu-memo...
2•losgehts•8m ago•0 comments

Categorization with NLP

https://softwaremaniacs.org/blog/2026/07/30/categorization-with-nlp/en/
1•speckx•8m ago•0 comments

So Far This Year, China Has Wasted Enough Clean Energy to Power Mexico

https://e360.yale.edu/digest/china-renewable-curtailments
3•Brajeshwar•8m ago•0 comments

Babies born under sugar rationing grew into adults with lower cancer risk

https://theconversation.com/babies-born-under-sugar-rationing-grew-into-adults-with-lower-cancer-...
3•zeristor•8m ago•0 comments

Show HN: Codewindow – Picture in picture for terminal agents

https://codewindow.app/
1•warthog•8m ago•0 comments

Animated ASCII art with HTML video and canvas elements

https://sometimes.digital/posts/ascii-art-video-stream/
1•surprisetalk•10m ago•0 comments

Show HN: KeepNow – one command turns a coding session into a clean note

https://keepnow.app/
1•hikerell•11m ago•0 comments

What We Learned Moving Our Agent Loops from Anthropic to GLM

https://getunblocked.com/blog/moving-agent-loops-from-anthropic-to-glm/
4•dennispi•12m ago•0 comments

Show HN: My agents kept hallucinating APIs, so I built them a headless IDE

https://context-engine.app
1•welf•13m ago•0 comments

Show HN: Your 3D Scan Labels Are Trash

https://rerun.io/blog/arkitscenes-slam
2•pablovelagomez•14m ago•0 comments

Namespace Branching

https://turbopuffer.com/docs/branching
1•softwaredoug•14m ago•0 comments

Who Benchmarks the Benchmark?

https://shukla.io/blog/2026-08/gym.html
1•BinRoo•15m ago•0 comments

Rooting the Cadillac Lyric Part 1

https://surrealdev.com/rooting-the-cadillac-part-1-lay-of-the-land/
1•zsherf•16m ago•0 comments

Burn Rate: The Number That Decides How Long You Survive

https://sociallinker.org/metrics-calculator
1•athrayasaas•17m ago•0 comments

Show HN: Rasterly – a cheaper screenshot and PDF API with a live demo

https://rasterly.dev/
1•latcom•17m ago•1 comments