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

Mathematical "Urban Legends" (2011)

https://mathoverflow.net/questions/53122/mathematical-urban-legends
1•vismit2000•2m ago•0 comments

Three-year-old forced to serve as her own attorney in Tucson immigration court

https://coppercourier.com/2025/12/05/childrens-immigration-court/
1•sipofwater•2m ago•1 comments

Linux sysadmin interview cheating countermeasures

https://www.threads.com/@nixcraft/post/DR6kxiYjNt9
1•imglorp•2m ago•1 comments

Enterprise Agents Have a Reliability Problem

https://www.dbreunig.com/2025/12/06/the-state-of-agents.html
1•dbreunig•3m ago•0 comments

Publishing KOReader Highlights

https://tech.stonecharioteer.com/posts/2025/kollector/
2•stonecharioteer•5m ago•1 comments

Nested Learning: A new ML paradigm for continual learning

https://research.google/blog/introducing-nested-learning-a-new-ml-paradigm-for-continual-learning/
1•themgt•8m ago•0 comments

The plan-execute pattern (2024)

https://mmapped.blog/posts/29-plan-execute
1•Twixes•9m ago•0 comments

Give me AI slop over human sludge any day

https://world.hey.com/dhh/give-me-ai-slop-over-human-sludge-any-day-8c4b747d
1•vismit2000•10m ago•0 comments

Apple and Intel come closer after five years

https://www.igorslab.de/en/apple-and-intel-converge-again-after-five-years/
1•speckx•11m ago•0 comments

AntiX is a fast, lightweight and easy to install systemd-free Linux

https://antixlinux.com/
1•doener•12m ago•0 comments

Japan teen arrested for alleged ChatGPT-assisted cyberattacks

https://www3.nhk.or.jp/nhkworld/en/news/20251205_11/
1•campuscodi•14m ago•0 comments

2025 Floss/Fund Disbursements

https://floss.fund/projects/2025/
1•novoreorx•14m ago•0 comments

Show HN: Perception continuity function in multidimensional time

https://medium.com/@conversioncrossing/function-of-continuity-of-perception-in-multidimensional-t...
1•neuralquantum•15m ago•0 comments

Dollar-stores overcharge cash-strapped customers while promising low prices

https://www.theguardian.com/us-news/2025/dec/03/customers-pay-more-rising-dollar-store-costs
3•bookofjoe•18m ago•0 comments

Obfuscating Image Links

https://sigwait.org/~alex/blog/2025/12/07/qYkza8.html
1•henry_flower•19m ago•0 comments

Exploring the Gameboy Memory Bank Controller (2020)

https://b13rg.icecdn.tech/Gameboy-MBC-Analysis/
1•wicket•19m ago•0 comments

Show HN: Kelora – Turn messy logs into structured data

http://www.kelora.dev/v0.14.0/
1•dloss•23m ago•1 comments

From Pearl River to Gold Mountain: How Chinese Immigrants Helped Create the West

https://worldhistory.substack.com/p/from-pearl-river-to-gold-mountain
1•crescit_eundo•27m ago•0 comments

BehindTheMedspeak: A Spinal Tap

https://bookofjoe2.blogspot.com/2025/10/behindthemedspeak-this-is-spinal-tap.html
1•surprisetalk•28m ago•0 comments

UCSD Faculty Sound Alarm on Declining Student Skills

https://marginalrevolution.com/marginalrevolution/2025/11/ucsd-faculty-sound-alarm-on-declining-s...
3•surprisetalk•28m ago•0 comments

Financial Markets

https://humaninvariant.substack.com/p/financial-markets
1•surprisetalk•28m ago•0 comments

Ukrainian mathematician requests mathematical assistance

https://marginalrevolution.com/marginalrevolution/2025/12/a-ukrainian-mathematician-requests-math...
1•mhb•30m ago•0 comments

Show HN: Driftos-core – Conversation routing for AI apps

https://github.com/DriftOS/driftos-core
1•scott_waddell•30m ago•0 comments

CLAUDE.md – Applied rationality for a coding agent

https://gist.github.com/ctoth/d8e629209ff1d9748185b9830fa4e79f
2•kjhughes•38m ago•0 comments

Anthropic Interviewer

https://www.anthropic.com/news/anthropic-interviewer
1•erhuve•39m ago•0 comments

Waymo: Lots happening, but nothing has changed

https://philkoopman.substack.com/p/waymo-lots-happening-but-nothing
1•georgecmu•39m ago•0 comments

AI code is like sushi

https://johncodes.com/archive/2025/11-30-ai-code-is-sushi/
1•jpmcb•40m ago•1 comments

Ask HN: Is it just me or techno-optimism died in the past few years?

12•shubhamjain•49m ago•7 comments

Show HN: An Open-Source Windows Cleaner. Fast, Secure, Bloat Free

https://cleanse.infinityfreeapp.com/
1•Drimiteros•49m ago•1 comments

JavaScript eval considered crazy (2012)

https://wingolog.org/archives/2012/01/12/javascript-eval-considered-crazy
1•zbentley•54m ago•0 comments