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

Show HN: A collection of simple AI apps that make your life better

https://www.bodhigpt.com/
1•bodhigephardt•1m ago•0 comments

Sources of human facial shape variability and craniofacial syndromes

https://www.mpg.de/25756603/1120-limn-decoding-the-sources-of-human-facial-shape-variability-and-...
1•gmays•1m ago•0 comments

Show HN: ScrollPods – Scroll hands-free on your Mac with AirPods

https://apps.apple.com/at/app/scrollpods/id6754846074?mt=12
1•tippa123•2m ago•0 comments

The metrics product we built worked – But we killed it and started over anyway

https://blog.sentry.io/the-metrics-product-we-built-worked-but-we-killed-it-and-started-over-anyway/
1•coloneltcb•3m ago•0 comments

TerraPower Natrium Reactor on the Grid by 2031

https://neutronbytes.com/2025/11/20/terrapower-natrium-reactor-on-the-grid-by-2031/
1•mpweiher•4m ago•0 comments

The Rockstar Workers Fired Before They Could Finish GTA 6 [video]

https://www.youtube.com/watch?v=c9nOwjeznjI
1•xyzzy3000•10m ago•0 comments

Porsche Cayenne Electric Is a $111,000 EV That Can Charge Wirelessly

https://www.thedrive.com/news/the-2026-porsche-cayenne-electric-is-a-111000-ev-that-can-charge-wi...
1•PaulHoule•12m ago•0 comments

Show HN: A Minimalistic Portfolio

https://irtaza.xyz
1•Irtaza1•13m ago•1 comments

Overconsumption gravely threatens water security in Rio Grande-Bravo basin

https://link.springer.com/article/10.1007/s43832-025-00301-2
1•bikenaga•13m ago•0 comments

Roblox Will Analyze Users' Faces to Verify Age

https://www.nytimes.com/2025/11/21/business/roblox-age-verification.html
2•insane_dreamer•14m ago•1 comments

Henry G. Gilbert Historical Nursery and Seed Trade Catalog Collection

https://archive.org/details/usda-nurseryandseedcatalog
1•tmoertel•16m ago•0 comments

Brain activity associated w food preoccupation in an individual on tirzepatide

https://www.nature.com/articles/s41591-025-04035-5
1•bookofjoe•16m ago•0 comments

In red states, many academic researchers feel fear–and resolve

https://www.science.org/content/article/red-states-many-academic-researchers-feel-fear-and-resolve
1•bikenaga•17m ago•0 comments

ELF Object File Format

https://gabi.xinuos.com/index.html
2•ingve•18m ago•0 comments

Claude.md: Best Practices for Optimizing with Prompt Learning

https://arize.com/blog/claude-md-best-practices-learned-from-optimizing-claude-code-with-prompt-l...
1•janpio•19m ago•0 comments

Not Hacker News

https://www.hackernews.app
1•mehdizare•19m ago•1 comments

NYT featuring internally dueling narratives about new 'Age of Disclosure' film

https://www.nytimes.com/2025/11/20/movies/the-age-of-disclosure-review.html
1•ricksunny•21m ago•1 comments

Google must double AI serving capacity every 6 months to meet demand

https://www.cnbc.com/2025/11/21/google-must-double-ai-serving-capacity-every-6-months-to-meet-dem...
4•magoghm•23m ago•0 comments

Ask HN: Best IDE/compiler agnostic C++ for beginners book

1•dustfinger•26m ago•0 comments

Why Does Development Slow? (Kent Beck)

https://tidyfirst.substack.com/p/why-does-development-slow
1•hampelm•26m ago•0 comments

Destroying Value Wherever They Go

https://irreal.org/blog/?p=13421
1•dxs•27m ago•0 comments

Converting an HTML <table> into a bar chart

https://picostitch.com/blog/2025/11/css-bar-chart/
1•wolframkriesing•33m ago•0 comments

Klein Bottles and Nuclear Fusion

https://lee-phillips.org/smiet/
4•leephillips•36m ago•0 comments

Hacker News Parody Thread(2013)

http://bradconte.com/files/misc/HackerNewsParodyThread/
4•etrvic•36m ago•0 comments

Show HN: City2Graph – Python Open Source for Geospatial Graph Neural Networks

https://city2graph.net/index.html
3•yutasato•36m ago•0 comments

Reflections from 20 to 30: Lessons from a Decade of Growth

https://taylorbrazelton.com/2024/08/22/2024-08-22-reflections-from-20-to-30-lessons-from-a-decade...
2•Ryanb58•37m ago•0 comments

Cursor Bird

https://open-vsx.org/extension/cursorbird/cursor-bird
1•jgeralnik•38m ago•0 comments

Ask HN: Reinstated Anthropic account still says "disabled"

1•mhalle•38m ago•2 comments

Google banned 158,000 indie developers last year. Here's why

https://medium.com/@russoatlarge_93541/déjà-vu-googles-using-its-monopoly-to-purge-158-000-develo...
1•markatlarge•39m ago•0 comments

Backlash against AI is no longer theoretical as regulation, public mood converge

https://www.proactiveinvestors.com/companies/news/1082978/backlash-against-ai-is-no-longer-theore...
3•moose_man•39m ago•0 comments