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?

Manifest for RISC-V Constant Time Floating-Point Operations

https://fprox.substack.com/p/manifest-for-risc-v-constant-time
1•hasheddan•13m ago•0 comments

The Flat Curve Society

https://steve-yegge.medium.com/the-flat-curve-society-36c8b01eb33b
1•fbuilesv•16m ago•0 comments

Why Gen Z Is Nostalgic for a Digital World They Never Knew

https://decodingvibes.com/blog/genz-and-frutiger-aero/
1•altmanaltman•20m ago•0 comments

The Story of the UK General Strike

https://www.nationalarchives.gov.uk/explore-the-collection/stories/the-general-strike/
1•petethomas•21m ago•0 comments

Show HN: Open-source Notion-style personal site / blog

https://github.com/terryds/notion-style-personal-site
1•terryds•22m ago•0 comments

Progressive Disclosure

https://en.wikipedia.org/wiki/Progressive_disclosure
1•Austin_Conlon•23m ago•0 comments

Trump Ally Wins Colombia Election, Heralding Pro-Market Turn

https://www.bloomberg.com/news/articles/2026-06-22/trump-ally-wins-colombian-election-heralding-p...
1•baristaGeek•30m ago•1 comments

Show HN: HyperSnatch – local-first evidence workstation for Windows

https://github.com/Z3r0DayZion-install/hypersnatch/releases/tag/v1.6.11
1•neuralshell•33m ago•0 comments

Show HN: Typevia live LaTeX editing with AI assistance

https://www.typevia.com/
1•Niqht•37m ago•0 comments

Geopolitical jitters push Europe's internet registry away from cloud strategy

https://www.theregister.com/networks/2026/06/19/geopolitical-jitters-push-europes-internet-regist...
2•mooreds•42m ago•0 comments

Therapy ferrets used to kill rats at UK's largest children's prison

https://www.theguardian.com/society/2026/jun/21/therapy-ferrets-kill-rats-uk-largest-children-pri...
3•mooreds•45m ago•1 comments

WebGPU feature detection was not enough to run small LLMs on phones

https://ludion.ai/blog/webgpu-reports-vs-reality/
1•Littice•45m ago•0 comments

Speculation Is All You Need

https://modal.com/blog/spec-is-all-u-need
1•birdculture•46m ago•0 comments

Fugu: Learn to assemble, route, and coordinate expert agents [pdf]

https://github.com/SakanaAI/fugu/blob/main/Fugu_technical_report.pdf
2•saran945•47m ago•0 comments

Extreme Time Value of Money: Late-Stage Career Planning (2021)

https://newsletter.kentbeck.com/p/extreme-time-value-of-money-late
1•mooreds•47m ago•0 comments

Manticore Search 27.1.5

https://manticoresearch.com/blog/manticore-search-27-1-5/
2•snikolaev•58m ago•1 comments

Chile turned to China for an undersea cable. The U.S. said no

https://restofworld.org/2026/chile-china-america-google-cable/
3•higginsniggins•1h ago•0 comments

AI Watchdog

https://www.theatlantic.com/category/ai-watchdog/
1•mikhael•1h ago•0 comments

Ask HN: What will AI coding look like when today's CS freshmen graduate?

1•linzhangrun•1h ago•0 comments

Show HN: Local-first LaTeX editor – open-source

https://apps.microsoft.com/detail/9p6038j2bxtp?hl=en-US&gl=US
2•leonardosalasd•1h ago•0 comments

Canadian government spent $46.8M on a secret Palantir contract

https://theijf.org/brief/canadian-palantir-contract-amendments-obd
4•logickkk1•1h ago•0 comments

Sakana Fugu

https://sakana.ai/fugu/
37•Finbarr•1h ago•6 comments

Show HN: Free AI courses that require a short reflection to earn a certificate

https://www.abc.com.py
1•pfannl•1h ago•0 comments

Why the Human Genome's Tangled Physicality May Confound AI

https://www.quantamagazine.org/why-the-human-genomes-tangled-physicality-may-confound-ai-20260618/
1•Jimmc414•1h ago•0 comments

Tlbic: A Time-Limited Basic Income System Designed with AI, v7.0

https://drive.google.com/file/d/1MtiNjQeQO9ilLuEFXwVeKgWOzec4F2Dn/view?usp=drive_link
2•michikawa59•1h ago•4 comments

Staggeringly precise optical lattice clock has a wealth of practical application

https://www.nippon.com/en/in-depth/d01235/
1•anigbrowl•1h ago•0 comments

Rights for Gods

https://www.lrb.co.uk/blog/2026/june/rights-for-gods
4•mitchbob•1h ago•1 comments

Microbubbles in Medicine

https://worksinprogress.co/issue/microbubbles/
4•Jimmc414•1h ago•0 comments

Microsoft Activation Scripts – Activate Windows / Office / ESUs

https://github.com/massgravel/Microsoft-Activation-Scripts
2•beatthatflight•1h ago•2 comments

Watt lies beneath (Geothermal Energy)

https://worksinprogress.co/issue/watt-lies-beneath/
1•Jimmc414•1h ago•0 comments