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?

Show HN: A trim size and margin calculator for self-published books

https://storiesden.com/trim-size-calculator
1•wilgrobe•4m ago•0 comments

Microsoft Will Retire Free Office 365 A1 Email for Schools

https://www.ghacks.net/2026/11/10/microsoft-will-retire-free-office-365-a1-email-for-schools-movi...
2•geox•5m ago•0 comments

How Voting Is Like a Klein Bottle

https://www.quantamagazine.org/how-voting-is-like-a-klein-bottle-20261026/
1•colinprince•11m ago•0 comments

The Apple Support Community will permanently close on November 20, 2026

https://discussions.apple.com/welcome
4•tech234a•11m ago•0 comments

A Microfactory That Stores Data in DNA

https://www.unige.ch/medias/en/2026/une-micro-usine-pour-stocker-des-donnees-dans-ladn
1•pseudolus•14m ago•0 comments

Tech Consultant Is Sentenced to 16 Years to Life in Cash App Founder's Killing

https://www.nytimes.com/2026/11/10/us/bob-lee-cash-app-murder-sentencing.html
2•pseudolus•16m ago•1 comments

The Unbearable Mediocrity of Microdramas

https://www.theatlantic.com/culture/2026/11/microdramas-festival-vertical-entertainment/689361/
1•petethomas•20m ago•0 comments

Controlling your AI agents from a game handheld

https://blog.codepipes.com/llms/ai-agents-handheld.html
1•kkapelon•26m ago•0 comments

Non-axisymmetric MHD equilibria with an arbitrary number of field periods

https://arxiv.org/abs/2611.07672
1•simonpure•27m ago•0 comments

Show HN: Crayon, the web's first personalized newspaper (1995), relaunched

https://crayon.net/relaunch
1•mayyah42•28m ago•0 comments

IBM ending visa and green cards in consulting division

https://www.reuters.com/technology/ibm-end-visa-green-card-sponsorship-most-roles-its-consulting-...
3•rooftopzen•29m ago•2 comments

Show HN: Caramel: a speech-to-speech conversation model trained only on audio

https://naklecha.com/research/caramel-1
1•naklecha•32m ago•0 comments

To deter bioterrorism, U.S. imposes new rules on ordering synthetic DNA

https://www.science.org/content/article/deter-bioterrorism-u-s-imposes-new-rules-ordering-synthet...
5•Metacelsus•40m ago•1 comments

Memory Safety Bugs in Rust Standard Library

https://forge-blog.github.io/posts/rust-std-memory-safety/
1•maxloh•44m ago•0 comments

Leica Cyclone REGISTER 360 2026.1.1 download

1•asksoft•44m ago•0 comments

Stomachion Puzzle – Play Online

https://puzzlewhere.com/solve/stomachion
2•bkevitt•46m ago•0 comments

Show HN: Daily GPU Rental Prices Across AWS, Azure, RunPod and Vast.ai

https://taipeiledger.com/gpu/
2•khoonie•48m ago•0 comments

How the Wildlife Black Market Works [video]

https://www.youtube.com/watch?v=6_oMb90boiU
1•gmays•51m ago•0 comments

Matching product records with a decision model

https://codecut.ai/typesafe-jev-vs-rapidfuzz-sentence-transformers/
1•khuyentran1401•52m ago•0 comments

Virtual Surveyor 10.3 drone-surveying and mapping

1•asksoft•59m ago•0 comments

DiffX – Next-Generation Extensible Diff Format (2025)

https://diffx.org/
2•zenincognito•59m ago•0 comments

Freya: Build cross-platform, performant, accessible and unique apps with Rust

https://freyaui.dev/
2•andunie•1h ago•0 comments

Qwen4-Max is now in Preview

https://twitter.com/Alibaba_Qwen/status/2120335993643684315
13•potwinkle•1h ago•1 comments

The FDA Hides Where Your Drugs Are Made [video]

https://www.youtube.com/watch?v=_MwQeiiO9Ec
1•dataflow•1h ago•0 comments

Signs You're Working in a Feature Factory (2016)

https://cutle.fish/blog/12-signs-youre-working-in-a-feature-factory/
2•sren•1h ago•0 comments

Movistar Blocks Its Own Support Forum Under LaLiga Anti-Piracy Order

https://torrentfreak.com/movistar-blocks-its-own-support-forum-under-laliga-anti-piracy-order/
3•gslin•1h ago•0 comments

Hooked on Tuna

https://blue-continuum.com/hooked-on-tuna
7•dnetesn•1h ago•0 comments

Rooting Multiple ISPs with Hyperglass

https://hyperpwn.xyz/
2•csmantle•1h ago•0 comments

Brazil's Largest Port Hit by Major IT Outage; Suspected Ransomware Cyberattack

https://uknip.co.uk/news/uk/uk-news/brazils-largest-port-hit-by-major-it-outage-amid-suspected-ra...
1•dvaplima•1h ago•0 comments

Ask HN: Why doesn't Ramp AI Index include OpenRouter or other aggregators?

2•ddxv•1h ago•0 comments