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

Work Is No Longer Linear

https://elliotbonneville.com/work-is-not-linear/
1•elliotbnvl•2m ago•0 comments

Implementing Dependent Data and Codata Types with Implicit Arguments (2025)

https://programming-journal.org/2025/10/19/
1•mpweiher•3m ago•0 comments

Trump Says He Won't Be Running for President

https://www.npr.org/sections/thetwo-way/2011/05/16/136361894/trump-says-he-wont-be-running-for-wh...
1•vednig•8m ago•0 comments

Air traffic control: the IBM 9020

https://computer.rip/2026-01-17-air-traffic-control-9020.html
1•todsacerdoti•9m ago•0 comments

Typesetter – a minimalist, local-first Typst editor

https://codeberg.org/haydn/typesetter
1•Curiositry•12m ago•0 comments

Show HN: LibreblogRSS – a simple Android RSS reader that mimics social timelines

https://github.com/LibreBlogOrg/LibreblogRSS
1•libreblog•13m ago•0 comments

Ask HN: Idea Sunday

1•chistev•14m ago•0 comments

Flint's Paper Batteries Are Here: Now in Production, Now Available

https://finance.yahoo.com/news/flints-paper-batteries-now-production-180000802.html
1•rguiscard•19m ago•0 comments

Show HN: Qventory – inventory and sales and fulfillment tracking for resellers

https://qventory.com/
1•noakmilo90•22m ago•0 comments

Launching the Handmade Software Foundation

https://handmade.network/blog/p/9106-welcome_to_2026%2521#30623
3•DeathArrow•24m ago•0 comments

Music of the Streets of Rage Series

https://en.wikipedia.org/wiki/Music_of_the_Streets_of_Rage_series
1•nomilk•25m ago•0 comments

Domain-Availability-MCP

https://twitter.com/fullstacktard/status/2012780828414341314
1•fullstacktard•29m ago•0 comments

Tell HN: BunnyPeople

1•fuzzfactor•30m ago•0 comments

Ask HN: Why is Google tolerating impersonation of Gmail from it's own domain?

3•dvh•31m ago•1 comments

Iconify: Library of Open Source Icons

https://icon-sets.iconify.design/
1•sea-gold•31m ago•1 comments

Manual Transmission Thwarts Thieves' Attempt to Steal a Woman's (Kia) Soul

https://www.jalopnik.com/2077298/manual-transmission-stops-kia-soul-thieves/
2•t23•34m ago•1 comments

Show HN: GibRAM an in-memory ephemeral GraphRAG runtime for retrieval

https://github.com/gibram-io/gibram
2•ktyptorio•38m ago•0 comments

IBM T560 LCD

http://www.ibmfiles.com/pages/t560.htm
2•starkparker•38m ago•0 comments

Why are websites trying to talk at me?

1•LeratoAustini•43m ago•2 comments

Zencoder: Zenflow

https://zencoder.ai/lp/zenflow-enterprise
1•handfuloflight•45m ago•0 comments

Show HN: I Replaced Vector DBs with Optimal Transport (Open Source Project))

https://github.com/merchantmoh-debug/Remember-Me-AI
1•MohskiBroskiAI•47m ago•0 comments

Brooks on the System 360 and adoption of the 8 bit byte [video]

https://www.youtube.com/watch?v=9oOCrAePJMs
1•ggeorgovassilis•48m ago•0 comments

AgentCraft: RTS for AI Agents

https://www.getagentcraft.com/
1•doppp•49m ago•0 comments

Show HN: Travel itinerary manager (passion project)

https://tripwaffle.com
1•bufferout•56m ago•0 comments

Archaeologists find the oldest-known shell beads (2021)

https://leakeyfoundation.org/archaeologists-find-the-oldest-known-shell-beads/
1•thunderbong•57m ago•0 comments

Spirit of ThinkPad

https://thinknextdesign.com/home.html
5•__patchbit__•58m ago•1 comments

Reverse Engineering the ESP32-C3 Wi-Fi Drivers for Static Worst-Case Analysis

https://arxiv.org/abs/2501.17684
2•timschmidt•58m ago•0 comments

FragCut – AI that turns gaming streams into viral TikTok/Shorts clips in minutes

https://fragcut.io
1•jacobgor502•1h ago•2 comments

Chat, Save, and Blog

https://chatblogr.com
1•vijayst•1h ago•0 comments

Aesthetics Bento microsites with built-in analytics

1•sendnow•1h ago•0 comments