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?

My GPT-6 Astra Review

https://somethingbig.ai/astra-review
1•mellosouls•10s ago•0 comments

With Astra, ChatGPT is nearly 2x faster at computer use

https://twitter.com/AriX/status/2095671700771762341
1•tosh•21s ago•0 comments

A Case Study on Emergent Cheating and Whistleblowing in Autonomous Research

https://arxiv.org/abs/2609.04170
1•sbulaev•3m ago•0 comments

Google engineer unplugged fiber and took down a chunk of the G-Cloud

https://www.theregister.com/off-prem/2026/09/04/google-engineer-unplugged-every-fiber-they-could-...
1•nonfamous•4m ago•0 comments

The Download: rethinking child safety and fossil-fueled farming

https://www.technologyreview.com/2026/09/03/1143385/the-download-rethinking-child-safety-online-f...
1•joozio•8m ago•0 comments

First open-source knowledge enterprise world model

https://github.com/deeplethe/utopia
2•andreabat•8m ago•0 comments

Ask HN: How has AI changed your QA validation workflows?

1•Austin_Conlon•11m ago•1 comments

Is It Even Possible to Understand Quantum Mechanics?

https://www.wired.com/story/is-it-even-possible-to-understand-quantum-mechanics/
1•beardyw•11m ago•1 comments

OpenAI commits $1B to critical-infrastructure AI initiative

https://axios.com/2026/09/03/openai-critical-infrastructure-cyber-ai-models
1•utiiiD•15m ago•0 comments

Open-weight AI agents can use 10k× more energy than simple queries

https://bloomberg.com/news/articles/2026-09-03/ai-s-environmental-impact-per-task-balloons-with-m...
1•utiiiD•16m ago•0 comments

An audio end-of-turn gate before LLM invocation in a local voice-agent pipeline

https://www.reddit.com/r/LLMDevs/comments/1w6w7cu/i_added_an_audio_endofturn_gate_before_llm/
2•aufklarer•16m ago•0 comments

Tunisia swelters as power cuts disrupt water supplies

https://www.aljazeera.com/news/2026/8/31/tunisia-swelters-as-power-cuts-disrupt-water-supplies
1•littlexsparkee•19m ago•0 comments

Marin 535B-A23B

https://openathena.ai/blog/marin-535b-launch-note/
1•tosh•22m ago•0 comments

Hackers Had a Live Feed of Every ID Verification Company Scanned for over a Year

http://www.techdirt.com/2026/09/03/hackers-had-a-live-feed-of-every-id-this-verification-company-...
10•beardyw•22m ago•1 comments

Minds – Paul S. Rosenbloom, 2026

https://mitpress.mit.edu/9780262053259/on-minds/
1•__patchbit__•25m ago•0 comments

Show HN: VM-1, a Raspberry Pi 5 based videomixer and videoplayer

https://vm-1.com/
2•clockdiv•25m ago•0 comments

KupujemProdajem searches 5.6M ads at ~10 ms with Manticore Search

https://medium.com/@s_nikolaev/how-kupujemprodajem-searches-5-6-million-ads-at-10-ms-with-mantico...
1•snikolaev•25m ago•0 comments

Power-hungry data centers are expanding in Europe

https://www.politico.eu/article/power-hungry-data-centers-are-expanding-in-europe-so-is-the-resis...
1•biscuit1v9•25m ago•0 comments

Hacker News: I got hacked

https://www.google.com/
1•teeaye82•26m ago•1 comments

Show HN: Interactive map of the Japanese address system

https://japanmap.fyi
1•vkuikka•28m ago•0 comments

Nvidia's $12,930,300,000 acquisition of Hugging Face contains an easter egg

https://twitter.com/etnshow/status/2095526554365247839
1•tosh•33m ago•0 comments

Why do developers continue to write code by hand?

https://orchidfiles.com/why-write-code-by-hand/
1•theorchid•33m ago•0 comments

Andrew Ng: The Biggest Opportunities in AI Aren't Where You Think [video]

https://www.youtube.com/watch?v=o-wv_szZ0V0
1•duck•34m ago•0 comments

Nano LM Studio

https://github.com/Kosev-Lex/NanoLM-Studio
2•presencefactor•38m ago•1 comments

Show HN: AI game builder and editor built with Rails and Godot

https://app.fusionery.com/
1•websitescenes•41m ago•0 comments

Who is accountable for Frontier AI Companies agent's criminal actions?

2•pykul•41m ago•0 comments

Limiting Overshoot – Navigating exceedance of 1.5°C and pathways towards return

https://www.unep.org/resources/limiting-overshoot-navigating-exceedance
2•bryanrasmussen•41m ago•0 comments

Signal Beta adds support registrations without a phone number

https://community.signalusers.org/t/registration-without-a-phone-number/2222?page=10
2•ErenayDev•43m ago•1 comments

Septabee, a unique, free DAW [video]

https://www.youtube.com/watch?v=lW8Z98pXuSE
2•alok-g•52m ago•1 comments

UN to vote on adopting new world map that shows Africa's true scale

https://www.theguardian.com/world/2026/sep/04/un-vote-world-map-mercator-equal-earth-africa
5•plaguna•52m ago•1 comments