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

MIDI Remote Panel for Multi-FX Sony DPS-V77

https://github.com/Tonfisch/Editor-for-Sony-DPS-V77
1•tonfisch•2m ago•0 comments

Wonderland, Incorporated: Marketing the national parks

https://worldhistory.substack.com/p/wonderland-incorporated
1•crescit_eundo•3m ago•0 comments

Show HN: Supabase Testcontainers for Rust

https://github.com/j7nw4r/supabase_testcontainers
2•tmpsterwfwegw•5m ago•0 comments

Show HN: ConceptViz – Generate STEM diagrams for teachers from simple prompts

https://conceptviz.app
1•zane0924•5m ago•0 comments

ChatGPT 3 turned 3 today. It still hasn't come close to meeting expectations

https://garymarcus.substack.com/p/three-years-on-chatgpt-still-isnt
2•garymarcus•6m ago•1 comments

Traveling Neighborhoods

https://supernuclear.substack.com/p/traveling-neighborhoods
1•surprisetalk•6m ago•0 comments

"Yo Mama" Joke

https://en.wikipedia.org/wiki/%22Yo_mama%22_joke
1•surprisetalk•7m ago•0 comments

What Makes an Experiment Beautiful?

https://www.asimov.press/p/beautiful-experiments
1•surprisetalk•7m ago•0 comments

Tinned Fish Frenzy

https://whatsworking.substack.com/p/tinned-fish-frenzy
1•surprisetalk•7m ago•0 comments

First Time Deploying to Production with AI Agents: Testing Cursor on Azure

https://pdub.click/2511308
1•7777777phil•10m ago•0 comments

ChatGPT Turns 3

https://restofworld.org/2025/chatgpt-three-years-global-impact/
1•donohoe•11m ago•0 comments

Cliff Young (Athlete)

https://en.wikipedia.org/wiki/Cliff_Young_(athlete)
2•wallflower•12m ago•0 comments

Show HN: I build a KOReader plugin to control Home Assistant devices

https://github.com/moritz-john/homeassistant.koplugin
1•sputge•12m ago•0 comments

Zillow Removes Climate Risk Scores from Home Listings

https://www.nytimes.com/2025/11/30/climate/zillow-climate-risk-scores-homes.html
2•donohoe•16m ago•0 comments

Web Interface Guidelines from Vercel

https://vercel.com/design/guidelines
1•Brajeshwar•17m ago•0 comments

Sylve: Lightweight GUI for Managing Bhyve, Jails, ZFS, Networking on FreeBSD

https://github.com/AlchemillaHQ/Sylve
1•ksec•18m ago•0 comments

The Overengineering Problem

https://mtende.blog/overengineering-problem
1•sonderotis•18m ago•0 comments

A Modern Renderer for SWT Applications (Without Changing Existing Code)

https://www.equo.dev/blog/swt-evolve
2•Javatasctic•18m ago•0 comments

The Undermining of the CDC

https://www.newyorker.com/magazine/2025/12/08/the-undermining-of-the-cdc
3•bookofjoe•19m ago•1 comments

Show HN: Cloud-agnostic SIEM that uses a natural language query layer

https://github.com/clay-good/mantissa-log
1•hireclay•22m ago•0 comments

Fen's Law of Programming

https://fenomas.com/2025/11/fens-law/
1•tagawa•25m ago•0 comments

The Beatles Anthology Review

https://www.theguardian.com/tv-and-radio/2025/nov/26/the-beatles-anthology-review-incredible-audi...
1•mariuz•25m ago•0 comments

Niri 25.11 released with alt-tab and other improvements

https://github.com/YaLTeR/niri/releases/tag/v25.11
2•WD-42•25m ago•0 comments

How Intelligence Agencies Deanonymized Admins of the "Boystown" Tor Service [video]

https://www.youtube.com/watch?v=Mzz6-mfevfs
1•intunderflow•29m ago•0 comments

A marketplace that kills the hidden ad-waste tax in e-commerce

3•Baqqla•40m ago•0 comments

AlphaFold: Five Years of Impact

https://deepmind.google/blog/alphafold-five-years-of-impact/
2•mariuz•40m ago•0 comments

Women's Rights Are Winning

https://foreignpolicy.com/2025/10/21/women-rights-equality-gender-abortion-populism-right-wing-fe...
2•mooreds•41m ago•0 comments

Geothermal Breakthrough in South Texas Signals New Era for Ercot

https://www.powermag.com/geothermal-breakthrough-in-south-texas-signals-new-era-for-ercot/
7•mooreds•42m ago•0 comments

The most sustainable feedstocks for precision fermentation (2024)

https://worldbiomarketinsights.com/the-most-sustainable-feedstocks-for-precision-fermentation/
1•mooreds•44m ago•0 comments

Merger (Purchase) Agreements Are Too Long

https://corpgov.law.harvard.edu/2025/11/28/merger-agreements-are-too-long/
2•cwwc•46m ago•0 comments