frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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•11mo 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•11mo 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?

US – Iran negotiations end with no deal reached

https://www.nytimes.com/live/2026/04/11/world/iran-war-trump-talks-pakistan
2•chirau•2m ago•1 comments

No deal reached in Iran – US talks

2•chirau•4m ago•0 comments

Emergency Prices: How Private Equity Captured the Ambulance Market

https://www.thebignewsletter.com/p/code-red-why-your-city-cant-affordor
2•walterbell•9m ago•0 comments

The Center Has a Bias

https://lucumr.pocoo.org/2026/4/11/the-center-has-a-bias/
1•theshrike79•10m ago•0 comments

Code on Incus: Security-Hardened Container Runtime for AI Coding Agents

https://github.com/mensfeld/code-on-incus
1•inktype•11m ago•0 comments

Find spaces to work and remote workers to connect with

https://opentotalk.it
1•alainrk•12m ago•0 comments

What comes after Open Source?

1•fxtentacle•13m ago•0 comments

Jonathan Blow on Italo Calvino and Video Games [video]

https://www.youtube.com/watch?v=vI16Txc7x1s
1•nathancspencer•14m ago•0 comments

Aids Info Disk: a playthrough of the first-ever ransomware

https://marnetto.net/2026/03/14/aids-info-disk
1•TMWNN•16m ago•0 comments

Scrum Master Interview Questions for the AI Era

https://age-of-product.com/10-scrum-master-interview-questions-ai-era/
1•swolpers•17m ago•0 comments

Show HN: Two Claudes collaborating through shared memory on a $100 mini-PC

2•asixicle•18m ago•0 comments

The Brainrot Industrial Complex

https://jshamsul.com/essays/2026-04-12-brainrot-industrial-complex
5•jibone•20m ago•0 comments

Iran and US fail to reach a deal (conomictimes.indiatimes.com)

https://economictimes.indiatimes.com/news/international/world-news/iran-and-us-failed-to-reach-a-...
1•SilentM68•33m ago•0 comments

Unauthenticated Object Write Vulnerability in MinIO

https://github.com/minio/minio/security/advisories/GHSA-9c4q-hq6p-c237
2•llui85•35m ago•1 comments

Show HN: Drowning in messages after 6 months as a CSM, I built a cat timer

https://apps.apple.com/us/app/purrrrrfocus-zen-cat-timer/id6753966008
1•louischen•37m ago•0 comments

Weather Prediction Markets Are Booming. Can They Improve Forecasts?

https://www.bloomberg.com/news/articles/2026-04-10/what-are-weather-prediction-markets-and-do-the...
1•fittingopposite•41m ago•0 comments

The Universal Standard Book Number

https://openusbn.org/
2•novalis78•43m ago•0 comments

'It's a special thing to be on Planet Earth': Artemis crew welcomed home in

https://www.bbc.com/news/videos/cd7jzj9rg1qo
1•hkhn•48m ago•0 comments

An LLM That Watches Your Logs and Kills Compromised Services at 3am

https://jonno.nz/posts/llm-kills-compromised-services-at-3am/
3•jonno-nz•49m ago•0 comments

The biggest advance in AI since the LLM

https://garymarcus.substack.com/p/the-biggest-advance-in-ai-since-the
5•hooch•55m ago•0 comments

Apollo Domain/IX User's Guide [pdf]

https://dn710900.ca.archive.org/0/items/bitsavers_apollo0058ideDec86_7208983/005803-01_DOMAIN_IX_...
2•drob518•59m ago•0 comments

Show HN: Minimalist template for scientific and academic resumes

https://github.com/pmichaillat/latex-cv
1•reomgdfsrtr•1h ago•0 comments

Electric Rail Bike for Abandoned Railroads [video]

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

Powell, Bessent discussed Anthropic's Mythos AI cyber threat with major US banks

https://www.cnbc.com/2026/04/10/powell-bessent-us-bank-ceos-anthropic-mythos-ai-cyber.html
6•attentive•1h ago•0 comments

A new interpretation of the Riemann Hypothesis based on wave interaction (Flux)

https://zenodo.org/records/19515676
1•kimhanhee•1h ago•1 comments

Excellence Is a Habit

https://www.flyingbarron.com/2026/04/excellence-is-habit.html
10•mooreds•1h ago•0 comments

Ideas for marketing a dev centric product (2019)

https://www.mooreds.com/wordpress/archives/3197
3•mooreds•1h ago•0 comments

Is the 'Holy Grail of batteries' ready to bless us with its presence?

https://www.theverge.com/transportation/909480/solid-state-battery-donut-lab-ev-china
5•neilfrndes•1h ago•1 comments

New town every hour blue sky account

https://bsky.app/profile/townsusa.bsky.social
4•mooreds•1h ago•0 comments

Vance Says U.S.-Iran Peace Talks Break Down over Nuclear Issue

https://www.wsj.com/livecoverage/iran-war-latest-news-israel-us-lebanon-2026
5•kamaraju•1h ago•2 comments