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?

Rising Stars Need a Witness

https://www.indiethinkers.com/essays/the-cosigns-you-dont-ask-for
1•danielkhunter•42s ago•0 comments

Parallel Language Models via Variational Decoding

https://arxiv.org/abs/2610.26693
1•E-Reverance•1m ago•0 comments

No More Icons in Every Menu by Default

https://blog.jim-nielsen.com/2026/icons-in-every-menu/
2•riffraff•4m ago•0 comments

Terence Tao and Yu Deng: Why We Build Open Math Model

https://www.youtube.com/watch?v=TjeCcDkuyao
3•doppp•6m ago•0 comments

Telehack

https://telehack.com/
1•jljljl•6m ago•0 comments

The Permanent Voice Vault

https://satire.worldbibliotech.com/
1•book-collective•7m ago•0 comments

Clang Bytecode interpreter update 2026

https://developers.redhat.com/articles/2026/10/19/clang-bytecode-interpreter-update-2026
1•tbaeder•10m ago•0 comments

Inside Prometheus: Meta's Journey to a Gigawatt-Scale Supercluster

https://engineering.fb.com/2026/10/19/data-center-engineering/inside-prometheus-meta-gigawatt-sca...
1•jonbaer•11m ago•0 comments

Managing projects with GNU Make, 3.xth Edition

https://wanderinghorse.net/computing/make/
1•seeg•11m ago•0 comments

SKY‑001 ] the First Engineering World Model

https://skyfall.ai/sky-001
1•doener•11m ago•0 comments

Mastodon 5.0: A Closer Look

https://blog.joinmastodon.org/2026/10/5.0-a-closer-look/
1•riffraff•13m ago•0 comments

ThinkPad I9990303 Error Catch-22

http://www.os2museum.com/wp/thinkpad-i9990303-error-catch-22/
1•userbinator•15m ago•0 comments

IBM Anderon Quantum Foundry Automates Qubit Fabs

https://spectrum.ieee.org/anderon-quantum-fab
1•gmays•15m ago•0 comments

Ask HN: What's your SSH terminal workflow like?

1•otherayden•21m ago•1 comments

Show HN: VM 9.0.0, a mail reader for Emacs

https://gitlab.com/emacs-vm/vm
1•diekhans•21m ago•0 comments

Supreme Court agrees to review ban on distilling spirits in private homes

https://apnews.com/article/supreme-court-distilling-spirits-reconstruction-ban-51131151865ded8609...
1•geox•24m ago•0 comments

About $1B of training compute is shared for free on the Hugging Face Hub

https://thomwolf-hub-dollars.static.hf.space/index.html
1•handfuloflight•25m ago•0 comments

U.S. Supreme Court to review 1868 federal ban on home distilling of liquor

https://www.staradvertiser.com/2026/10/19/breaking-news/u-s-supreme-court-to-review-1868-federal-...
2•Jimmc414•28m ago•0 comments

A Forgotten 1980 Reversible Computer, and the AI That Just Cut Quantum Costs 17x

https://x.com/BrianRoemmele/article/2112202286441374119
1•pcvarmint•29m ago•0 comments

Privacy Badger for Safari on macOS

https://apps.apple.com/us/app/privacy-badger/id6761143693?mt=12
2•Jiahang•35m ago•1 comments

Show HN: Rouler – Steer Windows traffic per app or IP across multiple interfaces

https://rouler.io/
1•brndnbuilds•39m ago•0 comments

AWS CFO joked about the financial toll of AI. An internal recording reveals why

https://www.businessinsider.com/amazon-220-billion-ai-bet-data-centers-spending-challenges-2026-10
2•ihuman•41m ago•1 comments

The AfD leak site's emails shows nazism from party members

https://twitter.com/intcyberdigest/status/2112131117826359749
2•doener•42m ago•0 comments

Pixel: Build Graphical Applications in the Terminal

https://pixelgui.com/
1•handfuloflight•43m ago•1 comments

Should agent-memory benchmarks test stale information?

https://agentmemories.ai/home
1•MemoryEnthusias•44m ago•0 comments

Show HN: An Open Source Aircraft

https://adampaigge.github.io/openplane/
1•adampaigge•45m ago•0 comments

Refuseless: Open and Abliterated LLMs

https://refuseless.com
2•handfuloflight•45m ago•0 comments

Show HN: Don't Get Nerf'd by Document Processing

https://extract.nerfguard.com
1•jonappleseed22•47m ago•0 comments

Show HN: AML CYCLE 2, a benchmark for long-term agent memory

https://x.com/AgentMemoryL
1•IreneAI•52m ago•0 comments

Show HN: SendReward – gift cards at face value, dashboard or one API call

https://sendreward.com/
1•burello•53m ago•0 comments