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?

Microsoft Buys Corp.com So Bad Guys Can't (2020)

https://krebsonsecurity.com/2020/04/microsoft-buys-corp-com-so-bad-guys-cant/
1•mindracer•21s ago•0 comments

Cistercian Numerals

https://en.wikipedia.org/wiki/Cistercian_numerals
1•Michelangelo11•1m ago•0 comments

French Top Court Gets It Right, Strikes Down Social Media Ban for Youths

https://www.eff.org/deeplinks/2026/08/french-top-court-gets-it-right-strikes-down-social-media-ba...
2•mdp2021•4m ago•0 comments

Neurosurgeons perform first successful AI-assisted operation to remove tumour

https://www.theguardian.com/technology/2026/aug/27/london-neurosurgeons-ai-assisted-operation-bra...
1•_tk_•7m ago•0 comments

Pipeline Green Isn't Data Correct

https://apacheseatunnel.medium.com/pipeline-green-isnt-data-correct-dad6044c50ac
1•SeaTunnel•14m ago•0 comments

ARC-AGI-3: A game with no instructions

https://genaipod.substack.com/p/arc-agi-3
1•kuczmama•15m ago•0 comments

Show HN: Not the GTC 2026 Keynote [video]

https://www.youtube.com/watch?v=A5oeMEhB7b4
1•molive•16m ago•0 comments

Nvidia forecasts 70% sales growth next year

https://www.reuters.com/business/media-telecom/nvidia-forecasts-quarterly-revenue-above-estimates...
1•u1hcw9nx•16m ago•0 comments

OpenXcom is an open-source clone of the original UFO: Enemy Unknown

https://openxcom.org/
1•doener•18m ago•0 comments

Glacier collapse and ice avalanche likely fueled deadly Nepal flash flood

https://www.japantimes.co.jp/news/2026/08/27/asia-pacific/society/glacier-avalanche-nepal-flood/
1•blondie9x•20m ago•0 comments

The Eternal Now: How Present Tense Fiction Is Eroding Literary Depth

https://www.pensandpoison.org/p/the-eternal-now-how-present-tense
1•Bluestein•21m ago•0 comments

Uniwidth Typeface

https://en.wikipedia.org/wiki/Uniwidth_typeface
1•amadeuspagel•24m ago•0 comments

An Oral History of Tim Curry's Escape to the One Place Uncorrupted by Capitalism

https://www.vice.com/en/article/an-oral-history-of-tim-currys-escape-to-the-one-place-uncorrupted...
1•tosh•24m ago•0 comments

GitHub – rajnandan1/ken: Thompson-mode systems discipline for AI agents

https://github.com/rajnandan1/ken
1•purple_wow•26m ago•0 comments

Ask HN: What do you do when your AI coding agent is doing its job?

1•tryingtolearn•26m ago•1 comments

A community database for the problems on the erdosproblems.com site

https://github.com/teorth/erdosproblems
1•duck•27m ago•0 comments

Noise-Driven Escape from Metastable Phases Explains Grokking in DNNs

https://arxiv.org/abs/2606.17120
1•jerlendds•28m ago•1 comments

Floci – Local Cloud Emulators

https://floci.io
1•gjvc•29m ago•0 comments

Rembed – Pure-Go text embeddings, no ONNX Runtime, no cgo

https://github.com/rostamlabs/rembed
1•vahid4134•29m ago•0 comments

(Amateur) Planetary Astrophotography (2024)

https://skiesandscopes.com/damian-peach/
2•jensgk•29m ago•0 comments

The Rocky Horror Show – ZX Spectrum, Amstrad CPC, C64, C128 (1985)

https://www.hardcoregaming101.net/the-rocky-horror-show/
1•Bluestein•33m ago•0 comments

CIA Chief's Surprise Moscow Trip Was to Warn Russia Not to Attack NATO

https://www.wsj.com/politics/policy/cia-chiefs-surprise-moscow-trip-was-to-warn-russia-not-to-att...
4•_tk_•33m ago•0 comments

Where this hype is going?

2•arman-w-jalili•37m ago•0 comments

PlainInvoice – Free Invoice Generator, No Signup Required

https://plaininvoice.com
1•5balloons•39m ago•0 comments

Junior consultants called back to office as AI increases need for human skills

https://www.ft.com/content/7fd9c234-a92b-4ab2-ba1f-969cf9a23f52
3•petethomas•42m ago•0 comments

AgeLab research inspires an A I startup

https://www.technologyreview.com/2026/08/25/1140917/agelab-research-inspires-an-a-i-startup/
1•joozio•42m ago•0 comments

Popular fiction is using present tense more than ever

https://idlerambling.substack.com/p/popular-fiction-is-using-present
1•Sketchy_•43m ago•0 comments

The Bitter Lesson

http://www.incompleteideas.net/IncIdeas/BitterLesson.html
1•vishnukvmd•44m ago•0 comments

What RTO Means for AI

https://jasondoyle.ie/whitepapers/what-return-to-office-removes/
1•jamesblakes•45m ago•0 comments

Voice Calling Without Internet

https://play.google.com/store/apps/details?id=com.quicksnap.close2me&hl=en_US
1•brnmwas•47m ago•1 comments