frontpage.
newsnewestaskshowjobs

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?

Unreleased Version of Super Mario Bros. Duck Hunt Discovered in Historic Haul

https://www.ign.com/articles/how-97-copies-of-an-unreleased-version-of-super-mario-bros-duck-hunt...
1•bookofjoe•50s ago•0 comments

Stario is a philosophy of visible parts, explicit decisions, and direct tools

https://stario.dev/
1•Bluestein•1m ago•0 comments

Belgian car salesman becomes prince after DNA test proves royal parentage

https://www.cnn.com/2026/08/22/europe/prince-belgium-secret-son-scli-intl
1•MilnerRoute•2m ago•0 comments

Show HN: Free tool to check Supabase vulnerabilities

https://defencecore.com/scan
1•tornadorice•5m ago•0 comments

Outbid.lol for SaaS

https://saasbid.io/
1•suitapp•6m ago•1 comments

Linus Torvalds uses AI to debug an Intel GPU driver bug

https://github.com/torvalds/linux/commit/818bebeb63dd6bf5f4e07e145f6cdbace520a34c
1•asciimoo•6m ago•0 comments

Digital avatars that move and act like professional actors

https://wizstar.com/
1•LYFMail•8m ago•0 comments

The next big thing in hydrogen could be underground

https://www.technologyreview.com/2026/08/20/1142512/geologic-hydrogen-hunt/
1•joozio•9m ago•0 comments

The Trade-Offs of Fighting Child Abuse Online

https://cacm.acm.org/opinion/the-hidden-trade-offs-of-fighting-child-abuse-online/
1•pseudolus•10m ago•0 comments

Htmx live is cool. Datastar is fast. This cow is raw and strong

https://stario.dev/ox
1•bobowski•10m ago•0 comments

Make Your Map Easy to Explore: Search, Coordinates and Measurement Tools

https://webris.pro/blog/interactive-map-tools-for-visitors
1•webris-maps•12m ago•0 comments

The Instant team joins OpenAI

https://www.instantdb.com/essays/instant_team_joins_openai
1•ndr•13m ago•0 comments

Anthropic appears to be A/B testing reduced effort levels in Claude Code

https://twitter.com/argofowl/status/2091150597374537729
2•matthieu_bl•13m ago•0 comments

Show HN: Outpost Go 1.4.0, a road-trip planner for the whole journey

https://apps.apple.com/us/app/outpost-go-road-trip-planner/id6781428303
1•AndrewLeeAstyne•13m ago•0 comments

Show HN: Reels-style shopping feed with a client-side recommender

https://thodasa.com
1•bhaumiktandan•19m ago•0 comments

An iOS app that runs AI agents and a complete voice pipeline on the device

https://github.com/hsandhu/agent
1•rsandhu•19m ago•0 comments

Show HN: Git workflow as an AI-agent skill

https://github.com/musoyangrigor/gitx-skill
1•MusoyanGrigor•21m ago•0 comments

Khavda Renewable Energy Park

https://en.wikipedia.org/wiki/Gujarat_Hybrid_Renewable_Energy_Park
1•Betelbuddy•23m ago•0 comments

Fork of antirez h3.c highly optimized for CUDA and DGX Spark (~15.5x speedup)

https://github.com/0xSufi/h3.c
1•binyu•23m ago•0 comments

Show HN: I turned Apple-style scroll-video websites into a reusable AI skill

https://github.com/musoyangrigor/scroll-video-website-skill
1•MusoyanGrigor•24m ago•0 comments

Hotcrp.com – AI agents and bot accounts

https://hotcrp.com/news/2026/ai-agents-202608
3•sneela•25m ago•0 comments

Show HN: Namo_complete: a non-obtrusive AI autocomplete for the bash terminal

https://github.com/namo-robotics/namo_complete
1•davidwbrwn•27m ago•0 comments

DefCon 34 – Stalking the Wily Hacker: 40 years later – Cliff Stoll [video]

https://www.youtube.com/watch?v=656058JxTM0
1•JKCalhoun•27m ago•0 comments

Show HN: Stash, turn your Instagram saves into notes Claude finds on its own

https://github.com/Parthuss/stash
1•ParthAkholkar•29m ago•0 comments

Liberté, Égalité, and Standardization of Recurring Tasks

https://drjeffmoore.substack.com/p/liberte-egalite-and-standardization
1•jpmoo•29m ago•0 comments

Turn Any Screenshot into a Shareable Link

https://medium.com/@chris.ahrweiler/turn-any-screenshot-into-a-shareable-link-f7715957f491
1•docjojo•34m ago•0 comments

Ask HN: At what point does "clean architecture" become technical debt?

2•kiops•34m ago•0 comments

Training Dyna-2 at million-hour scale, repeatably

https://www.dyna.co/research/dyna-2-infrastructure
1•intrepidsoldier•36m ago•0 comments

Arrested for a Late Manuscript: Seicho Matsumoto's 'Tokyo Express'

https://www.millersbookreview.com/p/arrested-for-a-late-manuscript-seicho-matsumoto-tokyo-express
1•benbreen•37m ago•0 comments

3D Chesss

https://www.chesss.xyz
1•niksda•39m ago•0 comments