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?

Show HN: X402 Inspector (Find misconfigurations in your x402 API)

https://contextiq.trango-compute.com
1•contextiq•1m ago•0 comments

UK study finds high-mileage electric cars more durable than petrol

https://electrek.co/2026/09/22/massive-uk-study-finds-high-mileage-electric-cars-more-durable-tha...
1•bookofjoe•1m ago•0 comments

AMD Takes the Lid off of Zen 6 as EPYC 9006

https://www.servethehome.com/amd-takes-the-lid-off-of-next-gen-epyc-9006-venice-as-zen-6-comes-to...
1•AbuAssar•1m ago•0 comments

2026 Small World in Motion Competition

https://www.nikonsmallworld.com/galleries/2026-small-world-in-motion-competition
1•surprisetalk•2m ago•0 comments

Accountable Algorithms

https://pennlawreview.com/2017/02/23/accountable-algorithms/
1•7777777phil•3m ago•0 comments

Show HN: Senzii – open-source staff scheduling with a native MCP interface

https://github.com/Senzii-App/app
1•cochsenreither•4m ago•0 comments

The Most Valuable Engineer Isn't Shipping Features – Rails World 2026 Keynote [video]

https://www.youtube.com/watch?v=XXjTdyhml0c
1•robbyrussell•4m ago•1 comments

My time away from tech (2026)

https://jezhou.com/2026/09/28/My-time-away-from-tech.html
1•jezhou•5m ago•2 comments

Tell HN: New Chat Control vote tomorrow

1•latexr•5m ago•0 comments

Dstv Installation Glenferness Tech Installations

https://techinstallations.co.za/dstv-installations-glenferness/
1•fanwellht•6m ago•1 comments

Show HN: IngotDB – SQL-based memory for LLM agents

https://github.com/tjbroodryk/ingot
1•tjbroodryk•7m ago•1 comments

Israel Keeps Expanding into Gaza Despite Cease-Fire, Satellite Images Show

https://www.nytimes.com/interactive/2026/09/28/world/middleeast/israel-gaza-cease-fire-palestinia...
2•ceejayoz•7m ago•0 comments

"For my birthday, my brother-in-law gave me a 4992-digit hex number"

https://mathstodon.xyz/@robinhouston/117347906022550797
1•pavel_lishin•8m ago•0 comments

The Homeless Community That Became a Self-Governed Village

https://www.nytimes.com/2026/09/26/headway/portland-diginity-village-homeless-community.html
1•ceejayoz•8m ago•1 comments

Nvidia Vera SMT Performance Benchmarks Review

https://www.phoronix.com/review/nvidia-vera-smt
1•rbanffy•8m ago•0 comments

Generative AI Gives Spacecraft the Autonomy Engineers Once Feared

https://spectrum.ieee.org/generative-ai-in-space-exploration
1•pseudolus•8m ago•0 comments

I made a site to show good news

https://readsomethingnice.org/
1•hzhangzc•9m ago•1 comments

Docker and QEMU now run on Vinix, a new OS/kernel written from scratch

https://blog.vinix-os.org/post/27/docker-and-qemu-now-run-on-vinix
1•amedvednikov•9m ago•0 comments

Lexxy 1.0. A new rich text editor for Rails

https://dev.37signals.com/lexxy-1-0/
1•TiredOfLife•10m ago•0 comments

GLM 5.3 signed my commit as Claude Fable 5. The harness is in the weights

https://future-seems-so-good.com/blog/the-harness-is-in-the-weights
1•henriquegodoy•12m ago•0 comments

Show HN: A NaN-immune explicit ODE solver that survives where RK4 explodes

https://github.com/Pratyaksh3142/The-Pratyaksh-Framework
1•pratyaksh1•12m ago•0 comments

Prediction markets' push into US stocks raises regulatory alarm bells

https://www.reuters.com/legal/government/prediction-markets-push-into-us-stocks-raises-regulatory...
1•thehoff•12m ago•0 comments

AMD EPYC 9006 SKU List: 31 Venice Parts, SP7 and SP8 Pricing

https://www.storagereview.com/news/amd-posts-the-full-epyc-9006-sku-list-31-venice-parts-from-700...
1•rbanffy•12m ago•0 comments

Its not just the fucking sandbox

https://twitter.com/joedaroo/status/2104335929293127851
1•maayank•13m ago•0 comments

GeoFilament – 3D print any place on Earth

https://geofilament.mochi.is/
1•ibaton•13m ago•0 comments

Nvidia Adds $150 Billion to Massive Stock Buyback, the Largest Ever

https://www.nytimes.com/2026/09/28/business/nvidia-stock-buyback.html
2•jbegley•15m ago•0 comments

Postgres Without the Wait

https://www.sqlite.ai/postgres
2•marcobambini•17m ago•0 comments

Show HN: AtAt – type @@ in any Mac text field to talk to your CLI agent

https://atatapp.com/
1•xinyao27•17m ago•0 comments

A minimal kernel in Swift, running in QEMU

https://carette.xyz/posts/minimal_swift_kernel_on_qemu/
1•LucidLynx•18m ago•0 comments

Failing to Solve Manic Miner with RL

https://www.atomic14.com/2026/09/28/manic-miner-from-reinforcement-learning-to-search
1•speckx•19m ago•0 comments