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?

Lucid to lay off roughly 18% of U.S. workforce, COO Marc Winterhoff leaves

https://www.cnbc.com/2026/06/22/lucid-layoffs-evs.html
1•mgh2•1m ago•0 comments

Clean sweep for Mamdani-backed candidates in New York's Democratic primary

https://www.bbc.com/news/articles/clye652m41po
1•mikhael•11m ago•0 comments

2026 vs. 1996 Chevrolet Blazer IIHS crash test

https://www.youtube.com/watch?v=4U8Ero-3GxI
2•plun9•12m ago•0 comments

VoltanaLLM: Energy-Efficient LLM Serving

https://supercomputing-system-ai-lab.github.io/projects/voltana/
1•matt_d•15m ago•0 comments

2003-era DDR2 memory prices jump up to 60%

https://www.tomshardware.com/pc-components/dram/ddr2-memory-prices-jump-up-to-60-percent
1•pkaeding•16m ago•0 comments

Sakana Fugu Technical Report

https://www.chapterpal.com/s/7ff4f6ba/sakana-fugu-technical-report
1•theanonymousone•16m ago•0 comments

Show HN: Deploy to Vercel, Netlify, Railway, Render, Cloudflare in 1 Command

https://xiaohou2503687-design.github.io/shipfast-oss/
1•shipfastai•16m ago•0 comments

Intel shareholder sues to void deal giving U.S. gov $11B in stock for free

https://papers.ssrn.com/sol3/papers.cfm?abstract_id=6985440
1•de6u99er•19m ago•1 comments

Sakana Fugu Ultra promises to deliver "the best frontier-level performance"

https://www.theverge.com/ai-artificial-intelligence/953904/sakana-fugu-ai
1•theanonymousone•24m ago•0 comments

TSMC: 36.1 A 32Gb/s 10.5Tb/s/mm 0.6pJ/b UCIe-Compliant Low-Latency Interface 3nm

https://ieeexplore.ieee.org/document/10904767
2•Alien1Being•24m ago•0 comments

Trump Gets Negative Reviews Internationally as Fewer Say US Is Reliable Partner

https://www.pewresearch.org/global/2026/06/23/trump-gets-negative-reviews-internationally-as-fewe...
3•Bondi_Blue•25m ago•0 comments

OpenAI spending hit $34B last year ahead of planned IPO

https://www.ft.com/content/e15b0d7e-ff6b-4f16-ba7a-4068feddb828
1•1vuio0pswjnm7•25m ago•1 comments

The Junior Developer Problem Is Becoming a Senior Developer Problem

https://www.vincentschmalbach.com/the-junior-developer-problem-is-becoming-a-senior-developer-pro...
3•vincent_s•26m ago•0 comments

Show HN: Fork.ai – branch any AI answer into a mind map instead of a chat log

https://forkai.in
1•gokulmc•27m ago•0 comments

Conspiracy Theories, Spontaneous Orders, and Global Politics [pdf]

https://isonomiaquarterly.com/wp-content/uploads/2025/11/massimino-pfwo.pdf
2•brandonlc•28m ago•1 comments

Lippmann Color Plates

https://www.eastman.org/event/workshops/lippmann-color-plates
1•andsoitis•31m ago•0 comments

Statement from Five Eyes agencies on cyber risk

https://www.ncsc.gov.uk/news/the-ai-shift-in-cyber-risk-why-leaders-must-act-now
1•reasonableklout•31m ago•0 comments

The Rolling Coup

https://www.thenation.com/article/politics/trump-rolling-coup/
1•aanet•32m ago•0 comments

Lippmann Photography

https://www.jonhilty.com/lippmann
1•andsoitis•32m ago•0 comments

MSc Thesis – The Limits of Generalized Sync

https://aaltodoc.aalto.fi/server/api/core/bitstreams/d485ca46-ef01-41bc-ae4c-d468afb209a8/content
1•bebraw•35m ago•1 comments

A Dark Dimension Could Link Two of the Universe's Great Unknowns

https://www.quantamagazine.org/a-dark-dimension-could-link-two-of-the-universes-great-unknowns-20...
2•anujbans•35m ago•0 comments

Distribution of Lightning

https://en.wikipedia.org/wiki/Distribution_of_lightning
1•nomilk•38m ago•0 comments

Mayors Push Data Center Rules to Protect Infrastructure

https://fivetakes.news/40-mayors-worldwide-endorse-a-pact-to-shape-data-center-development-ap-news
1•mmeirovich•38m ago•0 comments

Pizza wheels are bad and Japanese toilets are great

https://www.noahpinion.blog/p/pizza-wheels-are-bad-japanese-toilets
1•rwmj•39m ago•0 comments

Performance of WebAssembly Runtimes in 2026

https://00f.net/2026/06/23/webassembly-runtimes-2026/
2•theanonymousone•42m ago•0 comments

Show HN: Built this to grow my SaaS's social media channels

https://www.clickcast.tech/
1•modulusme•51m ago•0 comments

Cargo ship's chief engineer charged in 2024 Francis Scott Key bridge collapse

https://abcnews.com/US/wireStory/cargo-ships-chief-engineer-charged-2024-francis-scott-133982265
1•tevrede•52m ago•0 comments

Ask HN: Yahoo deleted all my emails. Now what?

4•neya•55m ago•1 comments

Qwen-AgentWorld: Language World Models for General Agents

https://github.com/QwenLM/Qwen-AgentWorld
2•berlianta•57m ago•0 comments

Vibe Code Is Legacy Code Before It Ships

https://www.vincentschmalbach.com/vibe-code-is-legacy-code-before-it-ships/
1•vincent_s•1h ago•0 comments