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?

Simonw on Lenny's Podcast

https://www.youtube.com/watch?v=wc8FBhQtdsA
1•doppp•1m ago•0 comments

European Tech Map – European Tech Alternatives

https://europeantechmap.eu/
1•giuliomagnifico•1m ago•0 comments

WTFM – I found Anthropic's pub fix for AI policy comp, then built it myself

https://mpdc.dev/wtfm/
1•ParanoidRV•5m ago•0 comments

Sheets, terminal based spreadsheet tool

https://github.com/maaslalani/sheets
1•marcuskaz•7m ago•0 comments

Paint a Street

https://paintastreet.com/
2•internetguy•7m ago•0 comments

The humanoid company that ships

https://updates.prototypecap.com/p/the-humanoid-company-that-actually
1•JoiDegn•9m ago•0 comments

Mini-Presenter

https://github.com/mitsuhiko/mini-presenter
1•doppp•14m ago•0 comments

Xiaomi MiMo releases token plan

https://platform.xiaomimimo.com/#/docs/news/token-plan-release
1•gainsurier•19m ago•0 comments

EmDash is not what the WordPress community requires

https://yosisubo.com/notes/emdash-is-not-what-the-wordpress-community-requires/
1•alprado50•20m ago•0 comments

A simplified presentation of Einstein's unified field equations (1929)

https://www.gutenberg.org/cache/epub/78343/pg78343-images.html
1•petethomas•20m ago•0 comments

Cleer AI – Phone-Triggered Desktop Automation with Zero Setup

https://cleer.archonic.dev
1•ypadamat•24m ago•0 comments

Can servers use elicitation for HITL scenarios?

https://realarcherl.github.io/posts/mcp_security/
1•ArcherL•29m ago•0 comments

Dlarc: The Radio Geek's Doomscrolling Antidote

https://www.radioworld.com/news-and-business/news-makers/dlarc-the-radio-geeks-doomscrolling-anti...
1•petethomas•29m ago•0 comments

A Rave Review of Superpowers (For Claude Code)

https://emschwartz.me/a-rave-review-of-superpowers-for-claude-code/
2•emschwartz•40m ago•0 comments

It's Time to Take Down Your Smart Cameras [video]

https://www.youtube.com/watch?v=UMIwNiwQewQ
3•latchkey•40m ago•1 comments

Emacs ATX April 2026 meetup [video]

https://www.youtube.com/watch?v=465GSalM6oI
1•iLemming•42m ago•0 comments

The Whispering Earring

https://gwern.net/doc/fiction/science-fiction/2012-10-03-yvain-thewhisperingearring.html
1•shpat•43m ago•0 comments

Microsoft Readies $10B AI Investment Plan in Japan

https://www.bloomberg.com/news/articles/2026-04-03/microsoft-drafts-10-billion-investment-plan-in...
2•petethomas•48m ago•1 comments

Pool compute to run powerful open models

https://docs.anarchai.org/
1•gasull•48m ago•0 comments

Show HN: Minimal Brain Teaser Web Game (Handcrafted, No AI)

https://mehuleo.github.io/encircle/
2•arttaboi•48m ago•0 comments

Government of Verdis

https://verdisgov.org/
2•skogstokig•54m ago•0 comments

Microdrive Anatomy(2008)

https://www.hjreggel.net/hdtechdat/hd-anatomy.html
1•o4c•56m ago•0 comments

How are people treating/deploying on-device AI?

https://minimal-light-theme.yliu.me/
1•romerocruzsa•59m ago•1 comments

Hacker News MOTD shell script

https://gist.github.com/brandonpollack23/db78386cb84389772974edeb9e9e29bc
5•brandonpollack2•1h ago•1 comments

The Grammar Is Not Its Own Ground

https://jimiwen.substack.com/p/si-wu-zi-c36
1•jimiwen•1h ago•0 comments

When a reasoning LLM chooses, which comes first: thought or decision?

https://arxiv.org/abs/2604.01202
1•dotvignesh•1h ago•0 comments

What Would You See Changed in Haskell?

https://blog.haskell.org/what-would-you-see-changed-in-haskell/
2•shpat•1h ago•0 comments

How Squarespace Implemented Support for HTML Video/Audio Lazy Loading

https://engineering.squarespace.com/blog/2026/squarespace-and-web-standards-how-we-helped-bring-h...
1•beeandapenguin•1h ago•0 comments

Iran targeted Amazon data centers

https://theconversation.com/why-iran-targeted-amazon-data-centers-and-what-that-does-and-doesnt-c...
5•ranit•1h ago•2 comments

Framecraft – Generate demo videos from a prompt using HTML Canvas/Skill/MCP/LLM

https://github.com/vaddisrinivas/framecraft
1•srinivasvaddi•1h ago•1 comments