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

Misu

https://en.wikipedia.org/wiki/Misu
1•carabiner•1m ago•0 comments

eLoran

https://en.wikipedia.org/wiki/ELoran
1•jonbaer•4m ago•0 comments

Ultra-fast CSV parsing and encoding for Elixir

https://github.com/jeffhuen/RustyCSV
1•sntran•5m ago•1 comments

The intracies of modern camera lens repair (2024)

https://salvagedcircuitry.com/sigma-45mm.html
3•transistor-man•5m ago•0 comments

Re: Cache: 0-click SXSS on Next.js via reflected headers

https://zhero-web-sec.github.io/research-and-things/re-cache-excessive-reflection-type-confusion-...
1•logickkk1•8m ago•0 comments

Cumulative average BMI and cognitive decline: a 24-year cohort study

https://link.springer.com/article/10.1007/s00415-026-13696-2
1•PaulHoule•9m ago•0 comments

I built an email agent to triage bogus security reports

https://opencomputer.dev/blog/email-security-triage-agent/
1•iacguy•14m ago•0 comments

Why Do Asian Brands Pretend to Be Japanese?

https://www.thechow.net/p/asian-brands-pretending-japanese-miniso
1•herbertl•14m ago•0 comments

Game Theory Text - Thomas Ferguson

https://web.archive.org/web/20050301121109/http://www.math.ucla.edu/~tom/Game_Theory/Contents.html
1•soupspaces•14m ago•0 comments

The Sandbaggers (1978 – 80) Complete Series

https://archive.org/details/the-sandbaggers-1978-80
1•petethomas•16m ago•0 comments

She won a religious exemption from using AI at work

https://www.businessinsider.com/worker-got-religious-exemption-using-ai-at-work-2026-6
6•dgellow•17m ago•3 comments

Silent Ransom Group Impersonating IT Personnel Through Social Engineering [pdf]

https://www.ic3.gov/CSA/2026/260526.pdf
2•gnabgib•21m ago•0 comments

ToTra – open-source LLM gateway with GDPR/EU AI Act compliance

https://github.com/SugaC-275/ToTra
1•SugaC275•22m ago•0 comments

The Shift in Peering Threatening the Internet's Foundations

https://www.internetsociety.org/blog/2026/06/the-shift-in-peering-threatening-the-internets-found...
2•8organicbits•29m ago•0 comments

Trump Urges 'Less Shackled' Pulte to Fire Intelligence-Community Employees

https://www.wsj.com/politics/national-security/trump-urges-less-shackled-pulte-to-fire-intelligen...
2•petethomas•32m ago•0 comments

If you don't fall for these extortionists' calls they'll show up with USB sticks

https://www.theregister.com/cyber-crime/2026/06/05/if-you-dont-fall-for-these-extortionists-calls...
1•Bender•32m ago•0 comments

Small modular nuclear reactor reaches criticality in first test

https://arstechnica.com/science/2026/06/first-us-test-of-modular-reactor-reaches-criticality/
1•Bender•33m ago•0 comments

Spinal cord stimulation for upper limb motor function in people with hemiparesis

https://www.nature.com/articles/s41591-026-04435-1
4•bookofjoe•33m ago•0 comments

Baby botulism outbreak: FDA still doesn't know cause or how to prevent it

https://arstechnica.com/health/2026/06/baby-botulism-outbreak-fda-still-doesnt-know-cause-or-how-...
2•Bender•34m ago•0 comments

Nasdaq falls 4% and suffers worst day since April 2025 traders flee chip stocks

https://www.cnbc.com/2026/06/04/stock-market-today-live-updates.html
5•rawgabbit•36m ago•1 comments

We Ditched Postgres for ClickHouse to Process 12B Caches per Day

https://momentic.ai/blog/postgres-to-clickhouse-migration
6•wuweiweiwu•39m ago•0 comments

You shouldn’t Use SQLite

https://www.hendrik-erz.de/post/why-you-shouldnt-use-sqlite
1•andrewstuart•39m ago•3 comments

GrapheneOS user reported to authorities for using GrapheneOS

https://discuss.grapheneos.org/d/36134-grapheneos-user-reported-to-authorities-for-using-grapheneos
5•Cider9986•40m ago•0 comments

Echoes from Another Place

https://scholarlyfutures.substack.com/p/echoes-from-another-place
1•JohnHammersley•41m ago•0 comments

Omnipod 5 is coming to Loop and Trio this summer

https://nightscout.github.io/omnipod-five/
1•Group_B•44m ago•0 comments

SpaceX blocked from early US benchmark index entry as S&P reaffirms rules

https://www.cnbc.com/2026/06/05/spacex-blocked-from-early-us-benchmark-index-entry-as-sp-reaffirm...
2•Quekid5•45m ago•1 comments

Apple Maps on the Web

https://maps.apple.com/
2•Austin_Conlon•53m ago•0 comments

Tensor Shapes in Pyrefly – Avik Chaudhuri – PyCon US 2026 Typing Summit [video]

https://www.youtube.com/watch?v=HE5EyQW_7eY
2•matt_d•53m ago•0 comments

Animated open source terminal agents modeled after The Office

https://munderdiffl.in/
1•mikeleeorg•55m ago•0 comments

Using an AI coding agent with oracle-based testing to build a game emulator

https://keanw.com/2026/03/a-diary-of-an-agentic-retro-gamer-part-1.html
1•throwaway_2494•55m ago•0 comments