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

An engine-run runtime environment for data sovereignty

https://www.trinitymonolith.io/
1•rahkyt•1m ago•0 comments

Ukrainian Drone Strikes Target Russian Military Facilities in St. Petersburg

https://www.wsj.com/world/russia/mass-ukrainian-drone-strikes-target-russian-military-facilities-...
1•JumpCrisscross•1m ago•0 comments

Database Is a Graph for Relational Deep Learning

https://neovintage.org/posts/relational-deep-learning/
1•neovintage•4m ago•0 comments

Programmers Aren't People

https://elliotbonneville.com/programmers-arent-people/
1•elliotbnvl•4m ago•0 comments

Gothic 1 Remake

https://store.steampowered.com/app/1297900/Gothic_1_Remake/
1•doener•5m ago•0 comments

Alley Cat (IBM, 1984)

https://www.playdosgames.com/online/alley-cat/
1•reconnecting•7m ago•0 comments

2026 Methods for Free Compute and AI Credits

https://www.dropbox.com/scl/fi/bvi5v0i94ifnk3mfstewq/SAIRC-Free-Compute.pdf?dl=0&e=1&noscript=1&r...
1•imranmk•11m ago•0 comments

Decoupled RISC-LLM Architectures via Circadian Synaptic Consolidation

https://aermia.com/u/NancySadkov/p/research-proposal-decoupled-risc-llm-architectures-via-circadi...
1•NancySadkov•13m ago•0 comments

AI could drive advances that solve problems it brings, scientist suggests

https://www.rnz.co.nz/news/science-and-technology/597458/ai-could-drive-advances-that-solve-the-p...
3•billybuckwheat•17m ago•0 comments

Why Robotics Is a Pre-Paradigm Field

https://whattotelltherobot.com/p/why-robotics-is-a-pre-paradigm-field
2•stefie10•19m ago•0 comments

NEOM issues temporary work stoppage on The Line until at least 2030

https://www.archpaper.com/2026/06/neom-temporary-work-pause-the-line/
2•JumpinJack_Cash•19m ago•0 comments

The C++ Documentary Won't Show You a Number. I Will

https://hftuniversity.com/post/the-c-documentary-won-t-show-you-a-number-i-will
3•canyp•24m ago•0 comments

Wasting China's solar panel surplus is madness

https://www.ft.com/content/b6cac184-75a4-47ab-94c5-5eb8c92cd407
3•mmarian•25m ago•2 comments

Criticizing the Everything Machine

https://pluralistic.net/2026/06/06/applied-counterescatology/
1•hn_acker•27m ago•0 comments

Refining Humanity

https://pluralistic.net/2026/06/05/defining-humanity/
1•hn_acker•27m ago•0 comments

Show HN: Dap-mux – Connect your editor and REPL to the same debug session

1•YesJustWolf•29m ago•0 comments

DOGE plan would have marked 2.7M living people as dead: Whistleblower

https://thehill.com/homenews/nexstar_media_wire/5912841-doge-plan-would-have-marked-2-7m-living-p...
6•hn_acker•29m ago•0 comments

William Gass and John Hawkes (1971)

https://www.92ny.org/archives/william-gass-and-john-hawkes
1•ofalkaed•31m ago•0 comments

Useful Robots (1968) [video]

https://www.youtube.com/watch?v=cEbSaWNs9pY
1•megamike•32m ago•0 comments

Show HN: PriceHound.app – Price tracking for $1/mo instead of selling your data

3•Brian_Fitz•38m ago•0 comments

Kernel Boot Process and how it works

https://0xax.gitbooks.io/linux-insides/content/Booting/
1•modinfo•40m ago•0 comments

Discovery of Cold War-era rare Eastern Bloc computers in a German hangar

https://computerhistory.org/stories/explorers-of-the-lost-computers/
5•andrewstuart•41m ago•0 comments

366-byte C program emulator can run Linux and Doom – IOCCC29 winner

https://github.com/ioccc-src/winner/blob/master/2025/cable/prog.c
4•s-macke•48m ago•1 comments

Show HN: Kodiqa Agent

https://github.com/Kodiqa-Solutions/Kodiqa-agent
1•open_source_new•51m ago•0 comments

Total Engineering

https://vietthan.github.io/blog/2026/06/05/total-engineering/
2•vietthan•56m ago•0 comments

Sansar – In development Gaussian Splat rendering [video]

https://www.youtube.com/watch?v=m7fwbKn9jGk
1•ugjka•59m ago•0 comments

Americans Are Keeping Their Cars Longer Than Ever–and Remaking the Auto Industry

https://www.wsj.com/business/autos/americans-are-keeping-their-cars-longer-than-ever-and-remaking...
3•JumpCrisscross•59m ago•3 comments

Heaven knows I'm perplexed now

https://idlemachines.co.uk/essays/perplexed
1•smaddrellmander•1h ago•0 comments

The Honest Case for the Humanities

https://substack.com/@napinillos/p-199545151
5•dsubburam•1h ago•0 comments

A USB-connected speaker can infect a PC without ever being touched

https://arstechnica.com/security/2026/06/highly-reviewed-speaker-can-be-hacked-over-the-air-to-in...
4•leecoursey•1h ago•2 comments