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?

Release of MonVisoer 0.1.0

https://github.com/linuxrebel/MonVisor
1•linuxrebe1•3m ago•0 comments

Companies to pay over $4M after gender reveal ignited deadly SoCal wildfire

https://ktla.com/news/inland-empire/settlement-gender-reveal-ignites-deadly-el-dorado-fire-califo...
1•Bender•4m ago•1 comments

LLMs are not the black box you were promised

https://www.jay.ai/blog/llms-are-not-a-black-box
1•_jayhack_•4m ago•0 comments

Second rabid bat found in crowded California neighborhoods sparks concern

https://www.dailymail.com/health/article-15865653/rabid-bat-san-francisco-rabies-exposure.html
1•Bender•4m ago•0 comments

Soon 80k-pound self-driving trucks could deliver packages to your door

https://www.dailymail.com/yourmoney/article-15868457/self-driving-trucks-fedex-aurora-texas.html
1•Bender•6m ago•0 comments

Will AI lead to the death of the internet? – DW Documentary [video]

https://www.youtube.com/watch?v=8qVbE9DHkEk
1•doener•14m ago•0 comments

The game from childhood is now multiplayer

https://tankolini-napierdolki.com/
1•symstu•14m ago•0 comments

Do Not Resign from Life

https://theconvivialsociety.substack.com/p/do-not-resign-from-life
2•longdefeat•16m ago•0 comments

Project Brain – Persistent memory index for AI coding

https://github.com/OoneBreath/claude-code-project-brain
1•Slav_fixflex•18m ago•0 comments

databow: a Rust CLI for any database with an ADBC driver

https://columnar.tech/blog/introducing-databow//
1•hckshr•20m ago•0 comments

Pluto.jl 1.0 release – reactive notebook for Julia

https://discourse.julialang.org/t/pluto-1-0-release/137296
1•fons-p•22m ago•0 comments

The Mathematics of Multi-Tenancy

https://www.bitsxpages.com/p/the-mathematics-of-multi-tenancy
1•birdculture•28m ago•0 comments

Normetrics: A unified API for norm-based linear models (white paper)

https://github.com/PPenelle/-NORMETRICS-
1•ppenelle•29m ago•0 comments

Why China got rich and India didn't

https://davidoks.blog/p/why-china-got-rich-and-india-didnt
9•rochansinha•29m ago•0 comments

Audio software to increase focus (EEG)

https://www.hosaka.fi/
2•cslr•30m ago•1 comments

We're going to put Codex inside ChatGPT

https://openai.com/business/intelligence-at-work/
2•marcuschong•30m ago•1 comments

Show HN: Junco, turn newsletters into short audio episodes

https://www.tryjunco.com/
3•alex-onecard•31m ago•3 comments

Generating Random Factored Numbers, Easily [pdf]

https://link.springer.com/content/pdf/10.1007/s00145-003-0051-5.pdf
1•luu•32m ago•0 comments

DeepSeek-V4-Flash (official FP8) running across 2x DGX Spark

https://forums.developer.nvidia.com/t/deepseek-v4-flash-official-fp8-running-across-2x-dgx-spark-...
1•pilooch•33m ago•0 comments

FBI charges two NIH researchers with smuggling monkeypox to US from Congo

https://www.justice.gov/usao-edmi/pr/feds-charge-foreign-nationals-working-national-institutes-he...
5•delichon•33m ago•0 comments

Python The Good Stuff: Humble Book Bundle

https://www.humblebundle.com/books/python-good-stuff-no-starch-books
2•teleforce•33m ago•0 comments

Use your Nvidia GPU's VRAM as swap space on Linux

https://github.com/c0dejedi/nbd-vram
20•tanelpoder•36m ago•0 comments

FullPAC files S-1 [pdf]

https://d1io3yog0oux5.cloudfront.net/gotv/sec/0001493152-26-026911/0001493152-26-026911.pdf
1•naryJane•37m ago•1 comments

Always Be Blaming: how Git blame answers the wrong question

https://matklad.github.io/2026/05/18/always-be-blaming.html
1•pgedge_postgres•42m ago•0 comments

Show HN: Reloops – Open-Source Frame.io Alternative for AI Agents and Teams

https://github.com/Reloops-App/reloops/
1•dheerajbhatia27•42m ago•1 comments

Show HN: Ordinary and Ordinaryd v0.6.0

https://codeberg.org/ordinarylabs/Ordinary/src/branch/main/docs/quick-start.md
1•seanwatters•43m ago•0 comments

Feds failing in bid to take a supercomputer from a climate research center

https://arstechnica.com/science/2026/06/judge-blocks-part-of-trump-admins-effort-to-hurt-colorado...
3•yodon•45m ago•0 comments

I hadn't coded in 30 years. Then I built a space game with Godot

3•CosmicGoldRush•45m ago•0 comments

AI enthusiasts are in race against time, AI skeptics are in race against entropy

https://charitydotwtf.substack.com/p/ai-enthusiasts-are-in-a-race-against
1•wapasta•45m ago•0 comments

Eupago for Python – The First Python SDK for Portugal's MB Way/Multibanco

https://github.com/bilouro/eupago-python
1•bilouro•47m ago•0 comments