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

A Macroeconomic Perspective on Stock Market Valuation Ratios

https://researchdatabase.minneapolisfed.org/concern/publications/5x21tf60n
1•mooreds•4m ago•0 comments

2026 Is the New 2016

https://en.wikipedia.org/wiki/2026_is_the_new_2016
1•CHB0403085482•5m ago•0 comments

Why Trump Mishandled Iran

https://foreignpolicy.com/2026/04/08/iran-war-ceasefire-trump-united-states-israel/
1•mooreds•5m ago•0 comments

Any USB drive or cable you plug in might be a silent killer

https://www.askwoody.com/newsletter/free-edition-any-usb-drive-or-cable-you-plug-in-might-be-a-si...
3•devonnull•6m ago•0 comments

Made an eBPF syscall tracer with a live TUI

https://github.com/pandaadir05/snoop
1•pigeon1231•7m ago•1 comments

Old, Discontinued Fiats Are Outselling New Fiats

https://www.jalopnik.com/2144450/old-discontinued-fiat-500x-outselling-new-500e/
1•mooreds•7m ago•0 comments

I solved NP‑complete problems by turning them into planets

https://github.com/TheAnalyticalAbsurdist/vedic-planetary-transformers
1•AbsurdityBureau•11m ago•0 comments

Gliding on Snow: One Man's Dream

https://bd-numerique.museebombardier.com/en/
1•sxzygz•14m ago•0 comments

Give Them Two Choices

https://chadnauseam.com/coding/tips/give-them-two-choices
1•ChadNauseam•16m ago•0 comments

The AI Productivity Paradox: Why the AI Multiplier Is Less Than 2x

https://www.forrestthewoods.com/blog/the-ai-productivity-paradox/
1•forrestthewoods•18m ago•0 comments

Javier Milei's bribery scandal may have derailed Argentina's crypto investment

https://www.theguardian.com/world/2026/apr/12/crypto-javier-milei-bribery-argentina
1•kasperni•20m ago•0 comments

Language, Curiosity and Life – By Masato Hagiwara

https://masatohagiwara.net/lcl.html
1•jotaefea•28m ago•0 comments

New metal with triple copper's heat conduction challenges fundamental physics

https://www.scientificamerican.com/article/new-metal-with-triple-coppers-heat-conduction-challeng...
2•thunderbong•42m ago•0 comments

Harvesting easter eggs: An exploratory study of enjoying transnarrative media

https://journals.plos.org/plosone/article?id=10.1371/journal.pone.0341588
1•PaulHoule•45m ago•0 comments

ORAC-NT MedChem Copilot that blocks synthetically infeasible molecules

https://github.com/Kretski/ORAC-NT
1•DREDREG•48m ago•0 comments

Show HN: Local LLM on a Pi 4 controlling hardware via tool calling

https://github.com/stfurkan/pi-llm
2•stfurkan•48m ago•2 comments

How to Split Mounjaro Pens

https://henryaj.substack.com/p/you-can-just-take-less-mounjaro
1•henryaj•51m ago•0 comments

Memoir to Secure Computing Technology Corp

https://cryptosmith.com/r/sctc/
1•relaunched•56m ago•1 comments

Postgres Advisory Locks: Deadlocks, Key Packing, and Fetch-Lock-Refetch

https://dteather.com/blogs/postgres-advisory-locks/
2•davidteather•57m ago•0 comments

Google Externalised the Cost of Renaming Gmail

https://nativerse-ventures.com/gmail-rename-cascade
7•Srinathprasanna•1h ago•1 comments

Show HNZ A native C/GTK Linux tray internet monitor to log ISP dropouts

https://github.com/lsferreira42/internet-indicator
1•lsferreira42•1h ago•0 comments

Show HN: A social feed with no strangers

https://www.grateful.so/
2•rpatni•1h ago•0 comments

A protective case for your glasses

https://thangs.com/designer/Gazzaladra/3d-model/Glasses%20case-1511373
2•dsego•1h ago•0 comments

Taking on CUDA with ROCm: 'One Step After Another'

https://www.eetimes.com/taking-on-cuda-with-rocm-one-step-after-another/
18•mindcrime•1h ago•11 comments

Vegetative Patients May Be More Aware Than We Knew

https://www.nytimes.com/2026/04/09/magazine/vegetative-states-conscious-aware.html
6•bookofjoe•1h ago•1 comments

Should capitalism be a choice?

https://cyrusradfar.com/thoughts/should-capitalism-be-a-choice
6•cyrusradfar•1h ago•1 comments

Major history podcasts are being faked

https://old.reddit.com/r/podcasting/comments/1sjgscs/major_history_podcasts_are_being_faked/
1•softwaredoug•1h ago•0 comments

Sam Altman's home targeted in second attack

https://sfstandard.com/2026/04/12/sam-altman-s-home-targeted-second-attack/
48•babelfish•1h ago•62 comments

Welcome to Agents Week

https://blog.cloudflare.com/welcome-to-agents-week/
1•cebert•1h ago•0 comments

They accidentally started a green screen revolution [video]

https://www.youtube.com/watch?v=Y3Dfw969itU
3•qingcharles•1h ago•0 comments