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?

Top universities hit after Canvas breach

https://www.techradar.com/pro/security/top-universities-among-victims-named-in-canvas-data-breach...
2•JustSkyfall•1m ago•0 comments

Brandolini's Law

https://en.wikipedia.org/wiki/Brandolini%27s_law
1•nvahalik•1m ago•0 comments

Sleep polysomnography predicts 130 health conditions, including CVD

https://www.empirical.health/blog/your-sleep-could-predict-your-next-cardiovascular-event/
2•brandonb•2m ago•0 comments

More Than a Portfolio: Building a Scroll-Driven 3D World with Something to Say

https://tympanus.net/codrops/2026/04/28/more-than-a-portfolio-building-a-scroll-driven-3d-world-w...
2•shreedx•2m ago•0 comments

Need Testers

https://play.google.com/apps/test/com.base69bf50b6337791963585c087.app/3
1•curbsidefree•2m ago•0 comments

Massive August 2025 Alaska megatsunami was second largest ever recorded

https://www.bbc.com/news/articles/c1m253033m4o
2•bookofjoe•3m ago•1 comments

A bird sings, a duck quacks

https://lattice.engineering/notes/2026/05/07/a-bird-sings-a-duck-quacks
1•rglover•4m ago•0 comments

Florida surgeon who removed wrong organ says hes forever traumatized by pt death

https://www.nbcnews.com/news/us-news/florida-surgeon-removed-wrong-organ-traumatized-deposition-r...
1•randycupertino•5m ago•0 comments

CVE-2026-42511 Breakdown: RCE in FreeBSD

https://aisle.com/blog/aisle-discovers-cve-2026-42511-a-21-year-old-freebsd-remote-command-execut...
1•mmsc•5m ago•0 comments

PLUR: Persistent memory for AI agents. Local-first, zero-cost

https://github.com/plur-ai/plur
2•mpgirro•6m ago•0 comments

Why The Pentagon Is Quadrupling Missile Production, and Why It Won't Be Enough

https://militarymachine.com/pentagon-missile-production-surge-2026
3•JumpCrisscross•6m ago•0 comments

Companies plan to ramp up production of Patriot missiles (2024)

https://www.defensenews.com/land/2024/04/09/how-companies-plan-to-ramp-up-production-of-patriot-m...
2•JumpCrisscross•7m ago•0 comments

Show HN: DiffCAD, a FreeCAD workbench to review model changes like code

https://github.com/eblanshey/DiffCAD
3•eblanshey•8m ago•0 comments

Cpp2Rust: Automatic Translation of C++ to Safe Rust

https://github.com/Cpp2Rust/cpp2rust
3•clairesutton•9m ago•1 comments

The Brazil Nut Effect

https://www.futilitycloset.com/2026/05/07/the-brazil-nut-effect/
2•speckx•10m ago•0 comments

Inside A Roadmap For Mass-Producing Small Nuclear Reactors In India

https://swarajyamag.com/economics/how-sound-is-indias-roadmap-for-mass-producing-small-nuclear-re...
2•rustoo•13m ago•0 comments

Previewing the Framework Wireless Touchpad Keyboard

https://frame.work/blog/previewing-the-framework-wireless-touchpad-keyboard
2•duck•14m ago•0 comments

Data Science Weekly – Issue 650

https://datascienceweekly.substack.com/p/data-science-weekly-issue-650
4•sebg•14m ago•0 comments

Students' personal data stolen in major education breach

https://www.malwarebytes.com/blog/news/2026/05/millions-of-students-personal-data-stolen-in-major...
3•palashawas•16m ago•1 comments

Basic Income: Housing Stability, Health, and Wellbeing

https://www.mdpi.com/1660-4601/23/4/417
2•PaulHoule•16m ago•0 comments

Who will drive the driverless car revolution?

https://www.ft.com/content/8c691499-5aaf-42e4-a765-4b676baa91d6
2•JumpCrisscross•16m ago•0 comments

CLI Printing Press – create go CLI tool from any API

https://github.com/mvanhorn/cli-printing-press
2•rahimnathwani•18m ago•0 comments

AI Push to Add $1.6B to Maryland Power Bills, State Says

https://www.bloomberg.com/news/articles/2026-05-07/ai-push-to-add-1-6-billion-to-maryland-power-b...
2•spankibalt•18m ago•1 comments

CalHomeAid – Searchable affordable housing directory for Orange County

https://calhomeaid.info/?lang=en
2•censore•19m ago•0 comments

Steam Controller: Reservations open May 8th

https://store.steampowered.com/news/group/45479024/view/702141174212725149
2•SockThief•19m ago•0 comments

Mr. Wonderful's Utah Data Center Will Be More Than Twice as Big as Manhattan

https://www.motherjones.com/politics/2026/05/mr-wonderful-utah-stratos-data-center-shark-tank/
3•cdrnsf•19m ago•1 comments

Google's next-gen reCAPTCHA system could spell trouble for de-Googled phones

https://www.androidauthority.com/google-recaptcha-play-services-requirement-3664806/
3•throwaway81523•21m ago•0 comments

Jelly no puzzle – remade in puzzlescript

https://jackkutilek.com/games/jelly-no-puzzle/
2•rahimnathwani•21m ago•0 comments

AI short video generation platform for content creator

https://www.qten.ai/
3•bandishankar•22m ago•2 comments

Utah senator smacks ABC reporters phone out of hand amid Data Center controversy

https://www.abc4.com/news/digital-exclusives/reporter-jj-nursery-utah-senator-jerry-stevenson-box...
5•randycupertino•22m ago•0 comments