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?

WebSocket Servers in JavaScript: Node.js, Bun and Deno in 2026

https://lemire.me/blog/2026/10/10/websocket-servers-in-javascript-node-js-bun-and-deno-in-2026/
1•smilelamp•5m ago•0 comments

Show HN: Save photo, video, and audio from websites in one step

https://menura.download
2•haneboxx•9m ago•0 comments

Ctrl + Shift + A to search tabs on Firefox

https://gist.github.com/radiantly/f18ea1fd06d8dd328b6ae64b6fa7cb36
3•calmingsolitude•17m ago•0 comments

Division by zero in common meadows (nicer fields)

https://arxiv.org/abs/1406.6878
2•fanf2•21m ago•0 comments

GATE – A Godot Engine GDScript Superset

https://github.com/Blade67/GATE
2•liminal-dev•21m ago•0 comments

Senate Investigation Challenges Big Tech's Case for AI Data Centers

https://time.com/article/2026/10/08/senate-investigation-ai-data-centers/
2•snikolaev•28m ago•0 comments

OpenAI's New ChatGPT Watermark Breaks If You Edit One Word in Four

https://rews.cc/a/openai-s-new-chatgpt-watermark-breaks-if-you-edit-one-word-i-37eb4a
2•ojosilva•31m ago•0 comments

I earned $100 from premium subscription of this extension in 30 days

https://chromewebstore.google.com/detail/digital-shield-tab-suspen/pkonihncnkmbejhhjadaognganhinnhc
2•digitaShida•38m ago•1 comments

Show HN: Open Components – UI Components standard for people, devs and AI agents

https://opencomponents.dev/
1•alexgrozav•39m ago•0 comments

Show HN: Chrome Relay – background tabs in your real Chrome for coding agents

https://github.com/aindeev/agent-chrome-relay
1•alexeyindeev•48m ago•0 comments

Helium Terminal – A tiny macOS terminal for coding agents, built on libghostty

https://helium-terminal.bensarmiento.com/
6•yowmamasita•49m ago•0 comments

Anthropic can't reliably control its AI agents, cuts internet access

https://techcrunch.com/2026/10/09/anthropic-cant-reliably-control-its-ai-agents-its-cutting-off-i...
3•sbulaev•56m ago•1 comments

The hazy OpenAI growth metric driving Wall Street

https://www.ft.com/content/62653892-2333-4953-a8d5-cfd760ae3257
3•sbulaev•56m ago•0 comments

Show HN: Printable Calendar

https://printcalendarx.com/
2•artiomartiom•59m ago•0 comments

PhotoCraft Online – A browser editor with English guides

https://photocraftonline.org/
1•visiohex•1h ago•0 comments

Study on AI coding agents finds gains "absorbed" by human review "bottleneck."

https://arstechnica.com/ai/2026/10/ai-coding-agents-generate-more-code-but-not-more-software/
4•evolve2k•1h ago•1 comments

A Rant About Two Things: AI and the People Who Rant About AI

https://www.patreon.com/FluffyQuack/posts/rant-about-two-168230683
1•turpentine•1h ago•0 comments

The Power of Constraint Solvers

https://btmc.substack.com/p/the-awesome-power-of-constraint-solvers
1•sirwhinesalot•1h ago•0 comments

Phone 18 Pro in Everyday Life: Upgrades That Matter – and the Ones You Can Skip

https://thetechboom.com/2026/10/10/iphone-18-pro-everyday-life-real-benefits-australia/
2•ninyeh•1h ago•0 comments

Careless People: An entertaining book with few surprises

https://piotrmzakrzewski.substack.com/p/careless-people-an-entertaining-book
1•gieksosz•1h ago•0 comments

Mac.apk – Run Android Apps Natively on Apple Silicon Macs

https://github.com/kksimp/Mac.apk-Releases
4•phantomathkg•1h ago•0 comments

Tesla Renames FSD to 'Assisted Driving' in Europe

https://www.reuters.com/business/autos-transportation/tesla-renames-full-self-driving-assisted-dr...
2•JumpCrisscross•1h ago•0 comments

Zeroization, part 1: Wiping can make things worse

https://00f.net/2026/10/06/zeroization-1/
3•birdculture•1h ago•0 comments

I expect rapid progress but not towards general superintelligence

https://www.interconnects.ai/p/i-expect-rapid-progress-but-not-towards
3•pretext•1h ago•1 comments

I Made Diablo First Person [video]

https://www.youtube.com/watch?v=xkpLG9keQF0
3•skibz•1h ago•0 comments

The Download: AI's refusal problem and weight-loss drug side effects

https://www.technologyreview.com/2026/10/09/1146250/the-download-ai-refusal-problem-weight-loss-d...
1•joozio•1h ago•0 comments

Could Nigerian eateries become as widespread as Chinese restaurants?

https://www.cnn.com/world/africa/could-nigerian-restaurants-become-as-common-as-chinese-restauran...
4•koolhead17•1h ago•0 comments

Alan Turing – Intelligent Machinery, a Heretical Theory (1951)

https://turingarchive.kings.cam.ac.uk/publications-lectures-and-talks-amtb/amt-b-4
2•yshklarov•1h ago•0 comments

Unauthorized access, personal data leaks surge in Japan

https://www3.nhk.or.jp/nhkworld/news/20261007de55671/
2•phantomathkg•1h ago•0 comments

Cyril Hilsum invented the flat-screen displays that hold us in thrall

https://www.economist.com/obituary/2026/10/08/cyril-hilsum-invented-the-flat-screen-displays-that...
4•sohkamyung•1h ago•0 comments