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?

AI Workflows in Production Without Burning Tokens

https://unmeshed.io/blog/bringing-ai-workflow-into-production-without-burning-tokens
1•jusonchan81•3m ago•0 comments

Microsoft worker emails employees about company's support of Israel

https://www.thecanary.co/global/world-analysis/2026/06/26/microsoft-worker-emails/
1•lorecore•5m ago•0 comments

The Cheques Are for the Land Not the Intelligence

https://aidatumpoint.substack.com/p/the-cheques-are-for-the-land-not
1•MadCatBureau•6m ago•0 comments

Show HN: best.free

https://best.free/
1•nadermx•7m ago•0 comments

Crypto vs. community: 4k local US lenders join forces to fight 'stablecoins' law

https://www.theguardian.com/technology/2026/jun/28/crypto-v-community-local-lenders-fight-stablec...
2•pseudolus•7m ago•0 comments

New UK stealth fighter demonstrator takes shape

https://www.aerosociety.com/news/new-uk-stealth-fighter-demonstrator-takes-shape/
1•Gravityloss•8m ago•0 comments

You get to watch 1 season of 1 show for the rest of your life, what do you pick?

https://www.reddit.com/r/AskReddit/s/Sf9sqnAqRr
1•eeko_systems•8m ago•1 comments

QUIC, HTTP/3 and WebTransport Vulnerabilities and How PQCrypta Mitigates Them

https://pqcrypta.com/quic-hardening/
1•pqpdf•18m ago•0 comments

Wall Street regulator investigating prediction market giant Polymarket

https://www.politico.com/news/2026/06/26/cftc-investigation-prediction-market-polymarket-00978218
6•voxadam•24m ago•1 comments

Knowledge Distillation of Black-Box Large Language Models

https://arxiv.org/abs/2401.07013
8•babelfish•27m ago•2 comments

My coworker Iris isn't a person

https://vinibrasil.com/my-coworker-iris-isnt-a-person/
1•vnbrs•28m ago•0 comments

France records 1k additional deaths as extreme heat breaks European records

https://www.latimes.com/world-nation/story/2026-06-28/extreme-heat-breaks-more-european-records-1...
2•rolph•29m ago•0 comments

State of the Tau 2026: Why Pi Is Wrong

https://www.tauday.com/state-of-the-tau-current
1•rendx•29m ago•0 comments

Khaos C2: Building a Custom Command and Control from Scratch

https://medium.com/@28zaaky/khaos-c2-building-a-fully-custom-command-and-control-from-scratch-95c...
2•882542F3884314B•31m ago•0 comments

Ask HN: Local CJK/Latin entity extraction without shipping a model?

2•zphou•32m ago•0 comments

Show HN: Pitch Ponies – startup themed comic series

https://supramono.com/blog/never-trust-a-venture-capitalist-a-founders-comic-book-horror-story/
1•supramono•32m ago•0 comments

Writing your own static website generator

https://x3hy.github.io/data/pages/f32cbcd0-c594-4a16-b93b-bdcb2c9b2573.html
2•3hy•34m ago•0 comments

A QNX-inspired operating system with selectable kernels

https://qsoe.net
4•edvinbesic•37m ago•0 comments

Hire Me (Taylor) via API

https://taylor.town/looop-000
2•Curiositry•37m ago•0 comments

Amid stark opposition, data center developers think twice about Florida

https://www.politico.com/news/2026/06/28/florida-data-centers-developers-opposition-00978255
2•1vuio0pswjnm7•38m ago•0 comments

Xonaly – Canada's Independent Search Engine

https://xonaly.com/
3•backlit4034•38m ago•0 comments

Comparative Advantage in Software

https://achad4.substack.com/p/comparative-advantage-in-software
1•achad4•39m ago•0 comments

Role-model: protocol for assigning the right AI model for the right job

https://role-model.dev/
1•handfuloflight•42m ago•0 comments

How does a pull-back car work? Illustrated teardown

https://mechanical-pencil.com/products/car
3•Muhammad523•43m ago•1 comments

Why One of Tech's Biggest Gamblers Is Betting Against Elon Musk's AI Vision

https://www.wsj.com/tech/why-one-of-techs-biggest-gamblers-is-betting-against-elon-musks-ai-visio...
1•petilon•43m ago•2 comments

Slow Breathing Can Rewire Your Brain and Change the Choices You Make

https://scitechdaily.com/slow-breathing-can-rewire-your-brain-and-change-the-choices-you-make/
5•Gaishan•46m ago•0 comments

Lucidml – Playable World Models that run on consumer GPUs

https://www.reddit.com/r/lucidmlx/s/8d7ZjIvmV3
2•abhisoflucidml•50m ago•0 comments

Why frontier LLMs can't read the hard documents without experts involved

https://idp-software.com/news/the-76-percent-wall/
2•chelm•51m ago•0 comments

Ratflow NYC: Real-Time NYC Rat Map

https://ratflow.nyc/
1•ohjeez•52m ago•0 comments

Peruvians promised jobs in Russia, but landed on the front lines in Ukraine

https://www.cnn.com/2026/06/28/americas/russia-ukraine-peruvian-fighters-latam-intl
4•breve•53m ago•0 comments