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?

Home Broadband Is 5G's Surprise Killer App

https://spectrum.ieee.org/fixed-wireless-access
1•Brajeshwar•1m ago•0 comments

Fable Back on AWS Bedrock

https://twitter.com/synthwavedd/status/2069813760622043483
1•mkw5053•2m ago•0 comments

Show HN: Imara – policy enforcement layer for MCP agents (npx imara)

https://github.com/Dnakitare/imara
1•dnakitare•2m ago•0 comments

Peach – free, open source, zero-knowledge password manager with no server

https://peachpasswords.com/
1•ashasoftware•2m ago•0 comments

Copy any websites design with this Chrome plugin

https://chromewebstore.google.com/detail/ai-brand-kits-—-extract-b/cbdoamlbbflaphjnbladbfnianjl...
1•mattmerrick•3m ago•0 comments

Raspberry Pi Locator to shut down after its bot was blocked

https://hackaday.com/2026/06/24/raspberry-pi-locator-website-to-shut-down-in-july/
1•Lihh27•4m ago•0 comments

Performance of WASM Runtimes in 2026

https://00f.net/2026/06/23/webassembly-runtimes-2026/
1•fanf2•5m ago•0 comments

How Does History Judge Prime Ministers?

https://www.historytoday.com/archive/head-head/how-does-history-judge-prime-ministers
1•pepys•6m ago•0 comments

Looking Ahead to Postgres 19

https://www.snowflake.com/en/blog/engineering/postgresql-19-features-beta/
1•plaur782•9m ago•0 comments

Ask HN: I miss old days of blogging without promotions

1•throwaw12•10m ago•1 comments

The running list: major tech layoffs in 2026 where employers cited AI

https://techcrunch.com/2026/06/22/the-running-list-major-tech-layoffs-in-2026-where-employers-cit...
2•wslh•12m ago•0 comments

Overturned truck releases 24M honeybees forcing Texas town lockdown

https://www.fox26houston.com/news/overturned-18-wheeler-releases-least-24-million-honeybees-forci...
1•Vaslo•13m ago•0 comments

Fuzzy APIs are remaking the web

https://www.infoworld.com/article/4186394/how-fuzzy-apis-are-remaking-the-web.html
1•msolujic•15m ago•0 comments

China as an Absolute Advantage Economy

https://yashenghuang.substack.com/p/china-as-an-absolute-advantage-economy
1•speckx•15m ago•0 comments

All roads led to Markdown

https://paxdynamics.com/blog/build-right
2•majestic5762•16m ago•0 comments

Codfish/semantic-release-action GitHub Action has been compromised

https://www.stepsecurity.io/blog/supply-chain-compromise-codfish-semantic-release-action
1•varunsharma07•16m ago•0 comments

Five-year-old Nvidia A100 servers sell for up to $82k in China

https://www.tomshardware.com/pc-components/gpu-drivers/five-year-old-nvidia-a100-servers-triple-i...
1•logickkk1•20m ago•0 comments

Undermining the Market

https://fee.org/articles/undermining-the-market/
1•WaitWaitWha•21m ago•0 comments

Disguised Russian banking apps topped US App Store again

https://9to5mac.com/2026/06/23/second-disguised-russian-banking-app-tops-the-app-store-this-month/
3•freedomben•22m ago•0 comments

Show HN: ccMarvin – Just Email with AI

https://ccmarvin.com
3•stopman•24m ago•0 comments

How Remote Work Has Helped a Generation of Working Parents

https://www.nytimes.com/2026/06/21/upshot/remote-work-parents-mothers.html
3•karakoram•24m ago•2 comments

Introduction to Making Makefiles

https://www.jfranken.de/homepages/johannes/vortraege/make.en.html
2•pillmillipedes•25m ago•0 comments

Brazilian judge sentences parents to prison for homeschooling their daughters

https://adfinternational.org/news/brazilianjudge-sentences-parents-to-prison-for-homeschooling-th...
3•like_any_other•25m ago•1 comments

The emergence of the web data infrastructure layer for AI

https://www.technologyreview.com/2026/06/24/1139202/the-emergence-of-the-web-data-infrastructure-...
1•Brajeshwar•25m ago•0 comments

Computer use in Gemini 3.5 Flash

https://blog.google/innovation-and-ai/models-and-research/gemini-models/introducing-computer-use-...
17•swolpers•25m ago•1 comments

Show HN: DBOSify – Drop-in Temporal replacement built on Postgres

https://github.com/dbos-inc/dbosify-py
3•KraftyOne•26m ago•1 comments

2026 EuroLLVM Developers' Meeting Talks

https://www.youtube.com/playlist?list=PL_R5A0lGi1ABJTIK5_5MkvHDb12mUmpSz
1•matt_d•26m ago•0 comments

A way to detect AWS/Terraform drift

https://infraviewer.site
1•Fofryf•26m ago•0 comments

Utah's largest solar and battery storage project is officially online

https://electrek.co/2026/06/24/utahs-largest-solar-battery-storage-project-is-officially-online/
2•Bender•29m ago•0 comments

Chinese supercomputer tops US models in global ranking

https://www.cnn.com/2026/06/24/tech/china-tops-world-supercomputer-ranking-intl-hnk
1•i4i•30m ago•0 comments