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?

We Bought a $500 Counterfeit Rolex So Good, Even Rolex Didn't Spot It

https://www.wired.com/story/we-bought-a-counterfeit-rolex-so-good-even-rolex-didnt-spot-it/
1•Brajeshwar•1m ago•0 comments

Google Just Made It Easier for Campaigns to Send You Fund-Raising Emails

https://www.nytimes.com/2026/08/18/us/politics/google-political-campaigns-email-spam.html
1•reaperducer•2m ago•0 comments

Windows Defender Crashes During a Quick Scan

https://borncity.com/win/2026/08/19/windows-defender-crashes-during-a-quick-scan-august-18-2026/
1•speckx•3m ago•0 comments

Show HN: Infinitely nestable visual task organizer and workload simulator

https://projectzen.com/home
1•dbullist•3m ago•0 comments

The Martians (Scientists)

https://en.wikipedia.org/wiki/The_Martians_(scientists)
1•leonidasrup•4m ago•0 comments

Getting set up on local AI. Here's what matters

https://twitter.com/draginol/status/2089338779324543047
1•draginol•4m ago•0 comments

Goldset, python bug fixes, each verified by running the test

https://github.com/andysalvo/goldset
1•andysalvo1•4m ago•0 comments

DIY Digital Photo Frame with RPI, Immich, and an old monitor

https://www.reddit.com/r/immich/comments/1vpujpo/new_raspberry_pi_digital_photo_frame_with_immich/
1•henriquenunez•5m ago•0 comments

HiFi Speaker Size/Spec Comparisons

http://www.truescaleaudio.com
1•Nagu-TSAudio•5m ago•1 comments

Code Is Not the Outcome, Learning Is

https://pawelbrodzinski.substack.com/p/code-is-not-the-outcome-learning
2•flail•5m ago•0 comments

It took us 9 years, 11 prototypes, and our life savings

https://twitter.com/mehul/status/2089784603737575470
1•tosh•6m ago•0 comments

The Sleepless Ape

https://claude.ai/code/artifact/bbf59276-21bf-4f0d-9e53-93bd9b7c526a
1•shafkathullah•7m ago•0 comments

Show HN: Remove logo from any t-shirt

https://www.removelogofromphotos.com/
1•StanleySathler•8m ago•0 comments

Show HN: Sequo – Writes your plan and decisions into files your agent reads

https://sequo.app
1•shken•8m ago•0 comments

I'm so f-n tired of the Internet It has become the worst place

2•behindai•10m ago•1 comments

On the fly, image transformation and delivery pipeline

https://github.com/go-batteries/optimux
1•argentum47•10m ago•0 comments

Show HN: NextBlock CMS – open-source fullstack CMS for NextJS 16 and Supabase

https://nextblock.dev
1•nextblock•10m ago•0 comments

Show HN: Verify OpenAI's signed agent traffic in Python (RFC 9421/Web Bot Auth)

https://github.com/regent-protocol/regent-httpsig
2•abay_aubakirov•10m ago•0 comments

PWA: Personal Web Apps

https://ma.ttias.be/pwas-personal-web-apps/
1•Mojah•10m ago•0 comments

I'll Follow the Sun

https://leancrew.com/all-this/2026/08/ill-follow-the-sun/
2•surprisetalk•11m ago•0 comments

What Happened on Easter Island?

https://www.scientificamerican.com/article/what-really-happened-on-easter-island/
1•sohkamyung•11m ago•0 comments

How to Survive the AI Cyberpocalypse

https://www.derekthompson.org/p/how-to-survive-the-ai-cyberpocalypse
1•momentmaker•12m ago•0 comments

WireGuard VPN Troubleshooting for Linux Administrators

https://barelypatched.com/wireguard-vpn-troubleshooting-for-linux-administrators/
1•whatbackup•13m ago•0 comments

A filename when none exists

https://daniel.haxx.se/blog/2024/08/19/a-filename-when-none-exists/
1•birdculture•13m ago•0 comments

South Korea youth employment falls sharply in AI-exposed industries, BOK says

https://www.koreajoongangdaily.com/business/94-of-job-losses-among-young-people-over-past-4-years...
1•neom•15m ago•0 comments

Reducing my blog's cloud costs to $0

https://flowtwo.io/post/building-a-new-blog-pt.-3
2•thejoeflow•15m ago•0 comments

Why I'm Staying Out of the Substack Religion Debate

https://www.astralcodexten.com/p/why-im-staying-out-of-the-substack
2•Michelangelo11•16m ago•1 comments

Reelaro – Full channel-to-post automation for video Shorts

https://reelaro.app
1•thorsBruda•17m ago•0 comments

OpenAI slows down training after its AI carried out hack

https://www.bbc.co.uk/news/articles/c235dmndylzo
1•Brajeshwar•18m ago•0 comments

Adding Error Bars to Evals: A Statistical Approach to Language Model Evaluations

https://arxiv.org/abs/2411.00640
1•Anon84•18m ago•0 comments