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?

How Fraud Swamped Minnesota's Social Services System on Tim Walz's Watch

https://www.nytimes.com/2025/11/29/us/fraud-minnesota-somali.html
1•donsupreme•5m ago•0 comments

The HA developers are insane

1•justsomedumbass•9m ago•0 comments

Show HN: Online AI Image Quality Enhancer for Free

https://aienhancer.ai/
1•Pratte_Haza•11m ago•0 comments

Show HN: Filmgine – AI Story Generator and Video Maker

https://filmgine.com
1•superfa•12m ago•0 comments

AI's safety features can be circumvented with poetry, research finds

https://www.theguardian.com/technology/2025/nov/30/ai-poetry-safety-features-jailbreak
1•situationista•13m ago•1 comments

Claude 4.5 Opus' Soul Document

https://www.lesswrong.com/posts/vpNG99GhbBoLov9og/claude-4-5-opus-soul-document
2•karma_daemon•15m ago•0 comments

X210Ai is a new motherboard to upgrade ThinkPad X201/200

https://www.tpart.net/about-x210ai/
1•walterbell•15m ago•0 comments

I Tested the M5 iPad Pro's Neural-Accelerated AI, and the Hype Is Real

https://www.macstories.net/stories/ipad-pro-m5-neural-benchmarks-mlx/
5•alwillis•18m ago•1 comments

CME's Data Center Adds More Cooling After Outage, CyrusOne Says

https://www.bloomberg.com/news/articles/2025-11-30/cme-s-data-center-adds-more-cooling-after-outa...
1•petethomas•20m ago•0 comments

Show HN: What's your mental age? Try It

https://mental-age-test.app
2•takennap•24m ago•2 comments

Ask YN: What CI do you use instead of GitHub Actions?

1•rmunn•27m ago•1 comments

Looking for Help and Feedback for Node.js Auth Project

https://github.com/Bicheka/nodejs-auth
1•bicheka•28m ago•0 comments

'The New Price of Eggs.' The Political Shocks of Data Centers and Electric Bills

https://www.nytimes.com/2025/11/30/us/politics/data-centers-electric-bills-georgia.html
1•zerosizedweasle•32m ago•1 comments

OpenAI's lead under pressure as rivals start to close the gap

https://www.ft.com/content/8881062d-ff4f-4454-8e9d-d992e8e2c4e3
3•1vuio0pswjnm7•34m ago•0 comments

Deepfake of North Carolina lawmaker used in award-winning Whirlpool video

https://www.washingtonpost.com/nation/2025/11/30/deep-fake-whirlool-brazil/
2•donohoe•43m ago•0 comments

Needy Software

https://mjtsai.com/blog/2025/11/18/needy-software/
3•Kerrick•43m ago•0 comments

Chernobyl Fungus Appears to Have Evolved an Incredible Ability

https://www.sciencealert.com/chernobyl-fungus-appears-to-have-evolved-an-incredible-ability
3•ashishgupta2209•48m ago•1 comments

Show HN: Open-source GitHub to Slack notifications

https://github.com/zlwaterfield/radar
1•zlwaterfield•50m ago•1 comments

At what point do you stop learning new programming languages?

https://rodyne.com/?p=3188
5•boznz•52m ago•2 comments

Show HN: Fabricate a GitHub persona and commit history with 1 command

https://github.com/dabit3/fabricate
1•dabit3•1h ago•1 comments

A curated list of free (libre) self-hosted projects

https://libreselfhosted.com
1•salkahfi•1h ago•2 comments

AI doesn't add up if you neglect the mathematicians

https://www.ft.com/content/b05318d1-12e5-49f1-9950-47e8b0f809ae
2•1vuio0pswjnm7•1h ago•0 comments

Show HN: FastLanes based integer compression in Zig

https://github.com/steelcake/zint
1•ozgrakkurt•1h ago•0 comments

Show HN: Free Online detection and content quality assurance tool

https://mydetector.ai/
1•Pratte_Haza•1h ago•0 comments

How the Firefox desktop launcher works

https://support.mozilla.org/en-US/kb/firefox-desktop-launcher
2•josephcsible•1h ago•1 comments

The Joy of Walking [video]

https://www.youtube.com/watch?v=WOqKR75Y7h4
1•lopespm•1h ago•0 comments

Russia's only active launch pad for cosmonauts is damaged

https://www.space.com/space-exploration/international-space-station/russias-only-launch-pad-for-c...
2•geox•1h ago•0 comments

15 Years Ago, UFO Sightings Rocked a Small Texas Town. The Mystery Remains

https://www.vice.com/en/article/netflix-encounters-messengers-stephenville/
5•handfuloflight•1h ago•0 comments

Ask HN: Which large model works best?

1•jsxyzb•1h ago•2 comments

Show HN: Scrappy Free AI Code Assistant

https://github.com/HakAl/scrappy
1•UmGuys•1h ago•0 comments