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?

Mama Look a White Dove

https://extelligence.substack.com/p/mama-look-a-white-dove
1•Aloha•4m ago•0 comments

Damo Academy unveils an AI agent able to discover superconductors

https://www.scmp.com/tech/big-tech/article/3359335/alibabas-elements-claw-ai-agent-unearths-four-...
1•yogthos•7m ago•0 comments

India's largest eVTOL demonstrator completes flight tests

https://newatlas.com/aircraft/india-evtol-demonstrator-sarla-aviation-sylla-shunya/
1•breve•8m ago•0 comments

Nvidia Has Become the Bank Behind the AI Boom

https://startupfortune.com/nvidia-has-quietly-become-the-bank-behind-the-ai-boom/
1•insanetechh•9m ago•0 comments

Tier-aware data federation between Postgres and Apache Iceberg

https://github.com/Modak-Labs/modak
1•addu390•13m ago•0 comments

Zo Computer

https://www.zo.computer
1•erhuve•17m ago•0 comments

America is destroying itself. It's no surprise

https://www.theguardian.com/commentisfree/2026/jul/04/us-history-destruction
2•skissane•17m ago•0 comments

Guix substitute and guix pull vulnerabilities

https://guix.gnu.org/blog/2026/guix-substitute-pull-vulnerabilities/
1•logickkk1•24m ago•0 comments

Scientists reverse brain aging, with a nasal spray

https://stories.tamu.edu/news/2026/04/14/scientists-reverse-brain-aging-with-a-nasal-spray/
24•cybermango•27m ago•1 comments

Apple Container 1.0 Released as a Native Docker Alternative for macOS

https://linuxiac.com/apple-container-1-0-released-as-a-native-docker-alternative-for-macos/
3•atkrad•27m ago•0 comments

Reflections on the Guillotine

https://theanarchistlibrary.org/library/albert-camus-reflections-on-the-guillotine
3•halperter•32m ago•0 comments

Blood Cell 'Nurseries' Upend Understanding of Human Physiology

https://news.feinberg.northwestern.edu/2026/07/02/blood-cell-nurseries-upend-understanding-of-hum...
2•cybermango•32m ago•0 comments

Be a Hikikomori for Science

https://www.theregister.com/science/2026/07/04/nasa-says-it-will-isolate-volunteers-from-the-outs...
4•johnea•36m ago•1 comments

Proxying inference requests in 6ms with Pingora, Envoy, and Spanner

https://modal.com/blog/serverless-servers
1•birdculture•38m ago•0 comments

Brawndo Plasma Thermos Makes What Plants Crave [video]

https://www.youtube.com/watch?v=brfSLxoHUps
1•westurner•39m ago•0 comments

Tungsten – an expressive, fast programming language

https://tungsten-lang.org/
3•jeffpeterson•40m ago•2 comments

Mapping with In-Memory Layers to Reduce LLM Overload

https://ridgetext.com/blog/mapbox-llm-composition
1•Buckwheat469•42m ago•0 comments

Jellyfont: Visual Search Engine for Fonts

https://www.jellyfont.xyz/
2•lcutner•43m ago•0 comments

Drone Autonomy Crash Course

https://www.cggonzalez.com/blog/index.html
2•cgg1•46m ago•0 comments

The Quest to Make Humanoid Robots Safe Enough for Humans

https://www.wsj.com/tech/the-quest-to-make-humanoid-robots-safe-enough-for-humans-4887c123
1•bookofjoe•55m ago•1 comments

Recovering garbled Bitcoin addresses (2024)

https://purplesyringa.moe/blog/recovering-garbled-bitcoin-addresses/
2•zX41ZdbW•56m ago•0 comments

AI Authentication and Authorization

https://fusionauth.io/articles/ai/ai-authentication-authorization
1•mooreds•57m ago•0 comments

The Ugly Phase

https://trishagee.com/2026/07/04/the-ugly-phase/
1•mooreds•58m ago•0 comments

Mantissa, a distributed workload orchestration system

https://mantissa.io/blog/init/
1•artursapek•1h ago•0 comments

Scientists discover a surprising link between Vitamin C and brain health

https://www.sciencedaily.com/releases/2026/06/260626030428.htm
2•OutOfHere•1h ago•1 comments

Ask HN: When will the stock market crash?

5•roschdal•1h ago•6 comments

DeFi yield comparison, read before depositing

https://hduynam99.substack.com/p/how-to-find-the-best-defi-yield
1•hoangthuytrang•1h ago•0 comments

Birdsong data from Merlin ID app to help global biodiversity project

https://www.theguardian.com/environment/2026/jul/04/merlin-app-birdsong-identification-ebird-biod...
2•andsoitis•1h ago•0 comments

Microsoft Copilot OS revealed in LEAKED video: built on Copilot and agentic AI

https://www.windowscentral.com/microsoft/windows-11/microsoft-copilot-os-revealed-in-leaked-video...
1•type0•1h ago•0 comments

Tell HN: Megalodon.jp is faster than archive.today and doesn't require reCAPTCHA

1•Cider9986•1h ago•1 comments