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?

Pancreatic cancer mRNA vaccine shows lasting results in an early trial

https://www.nbcnews.com/health/cancer/pancreatic-cancer-mrna-vaccine-shows-lasting-results-early-...
1•Anon84•57s ago•0 comments

The Wall of Shame

https://gagor.pro/2026/04/the-wall-of-shame/
1•___timor___•7m ago•0 comments

Verum, examined – a systems language for an age when humans write less code

https://verum-lang.org/blog/verum-examined
1•old8man•7m ago•0 comments

Show HN: Free PDF redactor that runs client-side

https://redactpdf.net
1•MrGuacamole•7m ago•0 comments

Presentator: Free and Open source design feedback and presentation platform

https://presentator.io/
1•thunderbong•10m ago•0 comments

Six Levels of Dark Mode

https://cssence.com/2024/six-levels-of-dark-mode/
2•Akcium•10m ago•0 comments

I Created OpenClaw – Peter Steinberger, TedTalk, YT)

https://www.youtube.com/watch?v=7rzYDM6vMtI
1•hbarka•11m ago•0 comments

A more troubling picture of sea level rise is coming into view

https://e360.yale.edu/features/sea-level-rise-land-subsidence
2•Brajeshwar•11m ago•0 comments

Europe has 'maybe six weeks of jet fuel left'

https://www.bbc.com/news/articles/czjw2kz0l22o
2•measurablefunc•14m ago•0 comments

PerryTS: Compile TypeScript to native executables with LLVM

https://www.perryts.com/
1•simjnd•18m ago•0 comments

Sagas vs. Process Managers

https://docs.eventsourcingdb.io/blog/2026/04/20/sagas-vs-process-managers/
1•goloroden•20m ago•0 comments

Epistemic Suicide: Why AI Is Collapsing into Mediocrity

https://medium.com/@erinacius4455/full-linkedin-article-english-version-6611a87d02c5
1•alex_gold•22m ago•0 comments

Cardynal – AI support agent for businesses, no code, WhatsApp and web chat

https://cardynal.io
1•Cardynal•23m ago•0 comments

Can You Hear an Ambulance Moving Faster Than Sound?

https://snoeprol.github.io/science/doppler-effect.html
1•Snoeprol•25m ago•0 comments

NNA (Natural Number Array)

https://users.rust-lang.org/t/this-is-my-first-project-i-invented-a-new-algorithm-that-even-ai-do...
1•Erenay09•27m ago•1 comments

PostgresBench: A Reproducible Benchmark for Postgres Services

https://clickhouse.com/blog/postgresbench
1•saisrirampur•28m ago•0 comments

New CDC pick may face "threat to follow ideology over evidence," ex-official say

https://www.cbsnews.com/news/jerome-adams-erica-schwartz-face-the-nation-surgeon-general-kennedy-...
1•rolph•31m ago•0 comments

Wind and solar power surge across the Mountain West as demand tests the grid

https://www.kunr.org/local-stories/2026-04-14/wind-solar-power-surge-mountain-west
1•Bender•32m ago•0 comments

Uber's AI Push Hits a Wall–CTO Says Budget Struggles Despite $3.4B Spend

https://finance.yahoo.com/sectors/technology/articles/ubers-anthropic-ai-push-hits-223109852.html
4•dakiol•33m ago•1 comments

Bronx officials try to rein social media 'takeovers' after events turn chaotic

https://gothamist.com/news/bronx-officials-try-to-rein-in-social-media-takeovers-after-winter-eve...
1•gnabgib•34m ago•0 comments

Fixing Unix Filenames (2009)

https://dwheeler.com/essays/fixing-unix-linux-filenames.html
2•LorenDB•37m ago•2 comments

How Can Make

https://www.forumvc.com
1•dongtam•39m ago•0 comments

Do Not Default to a Public VPN

https://avkcode.github.io/blog/do-not-default-to-a-vpn.html
1•KyleVlaros•45m ago•1 comments

The Missing Human Half of AI

https://www.utkarshapoorva.com/writing/missing-human-half-of-ai/
1•utkarsh_apoorva•46m ago•1 comments

Musk's SpaceX urges Trump to crack down on EU satellites

https://www.telegraph.co.uk/business/2026/04/19/musks-spacex-urges-trump-to-crackdown-on-eu-satel...
4•doener•47m ago•0 comments

An explainer of the invisible temporal logic shaping platform behavior

https://github.com/Dario-Chang/The-Invisible-Logic-Regulators-Missed-for-23-Years-How-Platforms-R...
1•governace-layer•51m ago•1 comments

After 6 months I shipped Transita found a niche I could build for

https://transita.app
1•snenenenene•51m ago•0 comments

"Now I Have the Full Picture"

https://taoofmac.com/space/notes/2026/04/19/1400
3•rcarmo•53m ago•0 comments

They Went Abroad to Save Money. Moving Back Seems Unaffordable

https://www.nytimes.com/2026/04/19/business/americans-abroad-cheaper-living-costs.html
2•mikhael•55m ago•0 comments

The Unsuitability of English (2015)

https://www.chronicle.com/blogs/linguafranca/the-unsuitability-of-english
1•downbad_•56m ago•1 comments