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

Disgraced fraudster Elizabeth Holmes caught a break; prosecutors aren't happy

https://nypost.com/2026/03/27/business/disgraced-theranos-fraudster-elizabeth-holmes-just-caught-...
1•1vuio0pswjnm7•9m ago•0 comments

Whats the most surprising business process you've automated with OpenClaw?

1•dhruvkar•12m ago•0 comments

List of Common Misconceptions

https://en.wikipedia.org/wiki/List_of_common_misconceptions
1•thedrexster•15m ago•0 comments

Human brain operates near, but not at, the critical point

https://phys.org/news/2026-03-human-brain-critical.html
1•yoquan•18m ago•0 comments

Fedora 44 will automatically make your Windows games run faster

https://www.xda-developers.com/fedora-44-will-automatically-make-your-windows-games-run-faster-no...
1•Alupis•20m ago•0 comments

WTO reforms talks stalled amid U.S.-India digital services taxation deadlock

https://www.reuters.com/world/india/wto-talks-stalled-going-into-final-day-amid-us-india-e-commer...
2•alephnerd•23m ago•0 comments

Hertz and Hearts – PC HRV biofeedback for chest-strap ECG (OpenHRV fork)

https://github.com/JoelAtHome/HertzAndHearts
1•J_Kobe•26m ago•0 comments

Apple issues urgent lock screen warnings for unpatched iPhones and iPads

https://securityaffairs.com/190109/security/apple-issues-urgent-lock-screen-warnings-for-unpatche...
2•WaitWaitWha•30m ago•0 comments

Emergency Microsoft, Oracle patches point to wider cyber issues

https://www.computerweekly.com/news/366640648/Emergency-Microsoft-Oracle-patches-point-to-wider-c...
1•smurda•31m ago•0 comments

Pentagon prepares for weeks of ground operations in Iran

https://www.washingtonpost.com/national-security/2026/03/28/trump-iran-ground-troops-marines/
3•Jimmc414•32m ago•1 comments

ReadyPC – open-source Rust PC Optomizer

https://github.com/Gloom-Team/ReadyPC/releases/tag/Latest
1•asdadaZ•32m ago•0 comments

Improving My C Build System with Zig

https://louislefebvre.net/tech/zig-gcc-replace/
1•louislef299•32m ago•0 comments

OpenYak – An open-source Cowork that runs any model and owns your filesystem

https://github.com/openyak/desktop
10•wangzhangwu•39m ago•1 comments

The Fastest Man Alive? [video]

https://www.youtube.com/shorts/R7OoEXaOVY0
1•SilentM68•39m ago•0 comments

How to Do Any Work

https://drive.google.com/uc?id=1wurJsO1vZYiynrTxDLroiQX2fBnKmldo&export=download
1•waseyjamal•43m ago•1 comments

Generalized Linear Model

https://en.wikipedia.org/wiki/Generalized_linear_model
2•azhenley•44m ago•0 comments

Data Centers Under Fire: A Systemic Security Challenge

https://www.datacenterknowledge.com/physical-security/data-centers-under-fire-a-growing-critical-...
1•WaitWaitWha•45m ago•0 comments

Mark Zuckerberg texted Elon Musk to offer help with DOGE

https://techcrunch.com/2026/03/28/mark-zuckerberg-texted-elon-musk-to-offer-help-with-doge/
3•toomanyrichies•49m ago•0 comments

Thinking in the Margins

https://theamericanscholar.org/thinking-in-the-margins/
1•SegfaultSeagull•1h ago•0 comments

The Revenge of the Data Scientist

https://hamel.dev/blog/posts/revenge/
1•prabal97•1h ago•0 comments

Eval-Driven Development: Applying TDD Principles to AI Agent Prompts

https://iris-eval.com/blog/eval-driven-development
1•iparent•1h ago•0 comments

Vanilla Claude vs. GitAuto Test Generation

https://gitauto.ai/blog/vanilla-claude-vs-gitauto-test-generation
1•nishiohiroshi•1h ago•0 comments

Show HN: Phantom – Let AI use your API keys without leaking them

https://github.com/ashlrai/phantom-secrets
1•masonwyatt23•1h ago•0 comments

Wikipedia officially bans AI-generated content

https://nypost.com/2026/03/28/tech/wikipedia-officially-bans-ai-generated-encyclopedia-entries/
8•1vuio0pswjnm7•1h ago•0 comments

Can You Guess What Tests a Calculator Needs?

https://gitauto.ai/blog/can-you-guess-what-tests-a-calculator-needs
1•nishiohiroshi•1h ago•0 comments

What Are Adversarial Tests and Why We Run Them

https://gitauto.ai/blog/what-are-adversarial-tests
1•nishiohiroshi•1h ago•0 comments

Indonesia Starts First Southeast Asia Social Media Ban for Kids

https://www.bloomberg.com/news/articles/2026-03-28/indonesia-starts-first-southeast-asia-social-m...
1•1vuio0pswjnm7•1h ago•0 comments

Indonesia's social media curbs for under 16s take set to start

https://www.reuters.com/business/media-telecom/indonesias-social-media-curbs-kids-set-saturday-fe...
1•1vuio0pswjnm7•1h ago•0 comments

Nice Graphs – Text to chart in one click

https://nice-graphs.com/pt
1•domiuau•1h ago•1 comments

Elon Musk's last co-founder reportedly leaves xAI

https://techcrunch.com/2026/03/28/elon-musks-last-co-founder-reportedly-leaves-xai/
5•SilverElfin•1h ago•2 comments