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?

Fruit Machine (Homosexuality Test)

https://en.wikipedia.org/wiki/Fruit_machine_(homosexuality_test)
1•thunderbong•3m ago•0 comments

Anthropic's Fable Jailbreak (Circumvent safety net)

https://github.com/0xSufi/fable-jailbreak/
1•binyu•4m ago•0 comments

How AI Agents Reshape Knowledge Work

https://research.perplexity.ai/articles/how-ai-agents-reshape-knowledge-work
1•gmays•9m ago•0 comments

Ask HN: Releasing code under AGPLv3, but want to block LLM reconstruction?

3•zionsati•11m ago•0 comments

Become a Happier Person

https://www.psychologytoday.com/gb/blog/self-made/202606/become-a-happier-person
2•geoffbp•11m ago•0 comments

Show HN: Headroom – Claude Code usage limits, live in the macOS menu bar

https://headroom.walls.sh/
1•patwalls•17m ago•0 comments

Pynder – crowdsourcing and tracking scam call data

https://pynder.net/
1•schwwaaa•19m ago•0 comments

Show HN: Built a public demo to explore SpaceX's IPO filing using multimodal RAG

https://www.calypso.so/demos/spacex-ipo-filing
3•gabamnml•19m ago•1 comments

I Built a Hazel Alternative for Mac with AI Rule Generation

https://medium.com/@jamal_davis/i-built-a-hazel-alternative-for-mac-with-ai-rule-generation-heres...
1•Gotoorbitapp•21m ago•0 comments

Auto-geo – open-source CLI for GEO that helps get your brand mentioned by LLMs

https://github.com/shadowresearch/auto-geo
1•jessen-gibbs•26m ago•1 comments

The Parable of the Talents

https://slatestarcodex.com/2015/01/31/the-parable-of-the-talents/
1•shadow28•29m ago•0 comments

Manus registered my domain in their own name and won't release it

1•AeonCa•29m ago•1 comments

Co-Existence and the End of Co-Intelligence

https://www.oneusefulthing.org/p/co-existence-and-the-end-of-co-intelligence
1•paulpauper•29m ago•0 comments

The Labor Share Fell. So What?

https://marginalrevolution.com/marginalrevolution/2026/06/the-labor-share-fell-so-what.html
1•paulpauper•30m ago•0 comments

I've Solved Content Discovery Conditions May Apply

https://philosophybear.substack.com/p/ive-solved-content-discovery-conditions
1•paulpauper•30m ago•0 comments

Windows 11 sucks slightly less due to June update

https://www.engadget.com/2191909/windows-11-sucks-slightly-less-now-thanks-to-a-june-update/
5•NordStreamYacht•36m ago•0 comments

China-linked operatives used ChatGPT to influence data centers debate

https://www.axios.com/2026/06/10/openai-china-ai-data-center-tariffs-chatgpt
3•alephnerd•38m ago•1 comments

The Social Reckoning (official teaser trailer) [video]

https://www.youtube.com/watch?v=gM4LkaXwGuY
1•Fricken•41m ago•0 comments

WebODM: The Missing Guide

https://webodmbook.com
1•pierotofy•42m ago•0 comments

Plants Could Be Used to Grow Medicines in Space

https://today.ucsd.edu/story/plants-could-be-used-to-grow-medicines-in-space-study-shows
1•gmays•47m ago•0 comments

Starlink: The Constellation, Live

https://sheets.works/data-viz/starlink
1•jonbaer•48m ago•0 comments

Ask HN: Someone started a company same name, same city, industry

1•bxclltkfz•49m ago•0 comments

AdBreak – Jailbreaking the Kindle

https://kindlemodding.org/jailbreaking/AdBreak/
1•nivethan•50m ago•0 comments

The First 100 Wikipedia Pages

https://en.wikipedia.org/wiki/Wikipedia:First_100_pages
2•bananamogul•50m ago•2 comments

Return on Tokens (Rot)

https://www.notboring.co/p/return-on-tokens-rot
1•thedreammachine•51m ago•0 comments

Stop the Surveillance State [pdf]

https://epic.org/wp-content/uploads/2026/04/EPIC-Stop-the-Surveillance-State-5.pdf
1•Cider9986•52m ago•0 comments

Few things in DC are more predictable than Congress renewing surveillance powers

https://xcancel.com/RepThomasMassie/status/2064849178249892220
4•Cider9986•53m ago•0 comments

China's BYD aims to be biggest car firm within five years

https://www.theguardian.com/business/2026/jun/10/china-byd-car-firm-ev-maker-toyota
4•teleforce•53m ago•0 comments

A short history of Cerro Torre, the most controversial mountain

https://www.markhorrell.com/blog/2012/a-short-history-of-cerro-torre/
3•joebig•1h ago•0 comments

Vector memory database remembers everything. That's the issue

https://medium.com/@vektormemory/your-vector-memory-database-remembers-everything-thats-exactly-t...
2•vektormemory•1h ago•0 comments