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

Why does AI like goblins and Japan so much?

https://english.elpais.com/technology/2026-05-07/why-does-ai-like-goblins-and-japan-so-much.html
1•geox•47s ago•0 comments

Dirty Frag: Universal Linux LPE

https://github.com/V4bel/dirtyfrag
1•danaris•4m ago•0 comments

Root-based Android app backup tool powered by Restic

https://github.com/hddq/restoid
1•anotherevan•8m ago•0 comments

A man who blew up a nuclear power station and disappeared

https://www.theguardian.com/world/2026/may/05/the-man-who-blew-up-a-nuclear-power-station-koeberg...
1•Michelangelo11•15m ago•0 comments

Pronouns in Perl (2009)

https://www.modernperlbooks.com/mt/2009/11/from-novice-to-adept-pronouns-in-perl
1•tosh•16m ago•0 comments

Discussion on Fsnotify Maintainer Removal

https://github.com/fsnotify/fsnotify/issues/757
1•mjyut•16m ago•1 comments

3 Women Who Fundamentally Shaped Modern Software [Reddit!!!]

https://old.reddit.com/r/compsci/comments/1t6jo79/3_women_who_fundamentally_shaped_modern_software/
1•signa11•18m ago•0 comments

Eating eggs could cut Alzheimer's risk by 27%

https://www.sciencedaily.com/releases/2026/05/260506225214.htm
2•y1n0•18m ago•1 comments

Can houseplants purify the air in your home?

https://phys.org/news/2026-05-houseplants-purify-air-home-science.html
1•y1n0•19m ago•0 comments

AI giveth and AI taketh CPU

https://stackoverflow.blog/2026/05/08/ai-giveth-and-ai-taketh-cpu/
1•y1n0•20m ago•0 comments

When a Meta CTO and an AWS ProServe Principal Converge on the Same Philosophy

https://www.outcomeops.ai/blogs/the-o16g-manifesto-validates-what-weve-been-building-since-july
2•linsys•23m ago•0 comments

The layoffs will continue till we learn to use AI

https://twitter.com/championswimmer/status/2051807284691612099
3•s4i•25m ago•0 comments

Attenborough: The risk-taker who changed how we see Earth

https://www.bbc.co.uk/news/resources/idt-715ff936-f52a-429d-bb35-d1940d7f6111
2•mellosouls•26m ago•0 comments

European 8mm footage from the previous century

https://old-love.eu/
2•flixz_•30m ago•0 comments

Axavive Official Site 2026: Pricing, Bonuses, and 90-Day Guarantee

https://finance.yahoo.com/sectors/healthcare/articles/axavive-skin-exploding-2026-golden-22590060...
2•farjzaty•33m ago•0 comments

Krytonum – a bare-metal C++ OS built from scratch

https://github.com/Velo-Computing-Technologies/Krytonum
2•hs100000•34m ago•0 comments

The Nature of Programming

https://medium.com/@tautvilas/what-is-programming-22a72ef4fd02
4•brisky•34m ago•0 comments

Show HN: When the LLM Accidentally

2•lucid-dev•35m ago•0 comments

Building an In-Person System (NYC)

https://www.notion.so/Building-an-In-Person-System-NYC-354c7880b1938067843defd62925fec4?source=co...
2•field-trace•35m ago•0 comments

Show HN: SafeKibble – free email alerts when your pet's food is FDA-recalled

https://www.safekibble.app/
2•akest•36m ago•0 comments

Pasilalinic-Sympathetic Compass

https://en.wikipedia.org/wiki/Pasilalinic-sympathetic_compass
2•canjobear•38m ago•0 comments

Pay and Sit – The Coin-Operated Private Park Bench

https://www.boredpanda.com/pay-sit-the-private-bench/
3•xeonmc•42m ago•1 comments

Mojo v1.0.0b1

https://mojolang.org/releases/v1.0.0b1/
2•signa11•44m ago•0 comments

Putin's Strongman Image Is Fading as Ukraine Brings War Home to Russia

https://www.wsj.com/world/russia/putins-strongman-image-is-fading-as-ukraine-brings-war-home-to-r...
7•JumpCrisscross•47m ago•0 comments

Why Medical Records Requests Get Delayed and How to Fix It

https://boldsign.com/blogs/medical-records-requests-esignatures/
2•Rachel_Atieno•50m ago•0 comments

HantaWatch Real time hantavirus outbreak tracker

https://hantawatch.net/
3•Accher•50m ago•0 comments

Ask HN: Does Codex hits limits more easily now?

2•endorphine•54m ago•0 comments

BotScript – a TypeScript superset for code mostly written by bots

https://github.com/marcelofarias/botscript
4•mfarias•56m ago•0 comments

DBase: 1979-2026

https://delphinightmares.substack.com/p/dbase-1979-2026
5•deeaceofbase•1h ago•2 comments

Ask HN: How are you sandboxing AI agents and developer CLIs?

4•nikhilpareek13•1h ago•0 comments