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

KpopAPI – RESTful Kpop API:)

https://www.kpopapi.com/docs
1•satinfive•5m ago•1 comments

Population change is so widely misunderstood

https://skywriter.blue/pages/did:plc:codfx2epdduamfycuyi5fjpb/post/3m7z5kmhrts2y
1•jahnu•6m ago•0 comments

8x Edsff E1.S NVMe SSD Mobile Rack for External 5.25" Drive Bay

https://global.icydock.com/product_319.html
1•walterbell•14m ago•0 comments

Norway and the Socialism Misconception

https://rodgercuddington.substack.com/p/norway-and-the-socialism-misconception
2•freespirt•15m ago•0 comments

Raoul Pal predicts macro-driven crypto cycle peak in 2026

https://altcoindesk.com/news/solana-breakpoint-highlights-raoul-pal-predicts-macro-driven-crypto-...
1•AishwaryaTiwari•23m ago•0 comments

Intel, AMD Accused of Allowing Chips in Russian Missiles

https://www.bloomberg.com/news/articles/2025-12-10/intel-amd-accused-of-failing-to-block-chips-in...
2•croes•24m ago•0 comments

AI and Gnome Shell Extensions

https://blogs.gnome.org/jrahmatzadeh/2025/12/06/ai-and-gnome-shell-extensions/
2•nobody9999•24m ago•0 comments

Understanding Mathematics Through Lean

https://bytesauna.com/post/proofs-as-types?source=email
1•mapehe•25m ago•1 comments

AudioMuse-AI: Local Sonic Analysis for Auto-Playlists on Jellyfin and Navidrome

https://github.com/NeptuneHub/AudioMuse-AI
1•xbmcuser•28m ago•0 comments

Possible platform/arch names in Deno.build and node:process

https://jcbhmr.com/2025/12/14/deno-build-possible-values/
1•jcbhmr•28m ago•0 comments

System Observability: Metrics, Sampling, and Tracing

https://entropicthoughts.com/system-observability-metrics-sampling-tracing
2•todsacerdoti•30m ago•0 comments

Archil Volume Storage

https://archil.com
1•handfuloflight•31m ago•0 comments

Finnish President about his contacts with Trump and peace in Ukraine [video]

https://www.youtube.com/watch?v=x44nantouf4
1•matonias•34m ago•0 comments

Red Hat Style Guide

https://www.stylepedia.net/style/
1•raldu•35m ago•0 comments

Architectural Decision Records (ADR)

https://adr.github.io/
1•stefankuehnel•37m ago•0 comments

Clouded Judgement 12.12.25 – Long Live Systems of Record

https://cloudedjudgement.substack.com/p/clouded-judgement-121225-long-live
1•signa11•39m ago•0 comments

The Return to Full-Fat Dairy

https://open.substack.com/pub/rodgercuddington/p/the-return-to-full-fat
2•freespirt•41m ago•0 comments

AI URI Scheme

https://www.ietf.org/archive/id/draft-sogomonian-ai-uri-scheme-01.html
1•enz•47m ago•0 comments

Show HN: Jigsaw Designer – Generate SVG jigsaw puzzles in seconds, not hours

https://jigsawdesigner.com/en
3•jigsawdesigner•51m ago•1 comments

I realized bad lighting is quietly hurting productivity (and no one measures it)

3•emmasuntech•54m ago•0 comments

Show HN: Beautiful browser-based music frequencies

https://github.com/iamdinakar/music
1•DinakarS•55m ago•0 comments

Countries with the Most Spoken Languages

https://www.visualcapitalist.com/ranked-the-10-countries-with-the-most-spoken-languages/
2•gsf_emergency_6•1h ago•1 comments

15Minutes – I watched an Hormozi reel and built a time-tracking app

https://apps.apple.com/us/app/15-minutes-timer-tracker/id6755746138
1•rohidjetha•1h ago•1 comments

China to regulate CEO romance micro dramas, warns against promoting materialism

https://www.globaltimes.cn/page/202411/1323805.shtml
5•walterbell•1h ago•0 comments

Traits of a Good Tech Lead

https://world.hey.com/joaoqalves/traits-of-a-good-tech-lead-b5cac0ae
2•kiyanwang•1h ago•0 comments

Shallow trees with heavy leaves (2020)

https://cp4space.hatsya.com/2020/12/13/shallow-trees-with-heavy-leaves/
2•HeliumHydride•1h ago•0 comments

Show HN: Xhancer – Enhance Your /Twitter Experience

https://xhancer.com/
2•luokuo•1h ago•0 comments

Risk of acute kidney injury and mortality in patients vaccinated for Covid-19

https://www.medsci.org/v22p4483.htm
10•walterbell•1h ago•1 comments

Tech Labs request-for-info: NSF funding for research orgs outside academia

https://sam.gov/workspace/contract/opp/7332ade93217443ba8c9abb916904e03/view
3•gsf_emergency_6•1h ago•0 comments

English vocabulary test – how many words do you know?

https://www.myvocab.info/en
2•danousna•1h ago•0 comments