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

Israel Is Blowing Up Iran's Police State to Clear the Way for a Revolt

https://www.wsj.com/world/middle-east/israel-is-blowing-up-irans-police-state-to-clear-the-way-fo...
1•breppp•52s ago•0 comments

Show HN: Cloudwright – validate, cost, and export cloud architectures from text

https://github.com/xmpuspus/cloudwright
1•xmpuspus•55s ago•0 comments

Show HN: Spotlytt

https://spotlytt.com
1•pbs29•1m ago•0 comments

Quiet War: Neal Asher, The Terminator, and AI takeover

https://yadin.com/notes/quiet/
1•dryadin•2m ago•0 comments

Show HN: Armalo – The Infrastructure for Agent Networks

1•ArmaloAI•5m ago•0 comments

Parakaryon – the sole species in the genus Parakaryon

https://en.wikipedia.org/wiki/Parakaryon
1•gurjeet•6m ago•0 comments

Tell HN: I exported my data from ChatGPT

1•luxpir•8m ago•0 comments

Polymarket and Kalshi's Iran War Wagers Are Ghoulish – and Troubling

https://www.bloomberg.com/opinion/articles/2026-03-04/prediction-markets-polymarket-kalshi-iran-w...
1•petethomas•8m ago•0 comments

Franz Kafka's Lost Treatise on Wayland

https://spader.zone/kafka/
1•dboon•9m ago•0 comments

A Temporal Dark Patterns Audit of McDonald's Self-Ordering Kiosk Flow

https://arxiv.org/abs/2603.03218
1•50kIters•9m ago•0 comments

Show HN: Yare.io – 1v1 JavaScript coding game

https://yare.io
2•levmiseri•12m ago•0 comments

Blackbird: The homemade drone that hit nearly 700km/h

https://newatlas.com/drones/biggs-blackbird-411mph/
1•asdefghyk•13m ago•1 comments

Design-First Collaboration

https://martinfowler.com/articles/reduce-friction-ai/design-first-collaboration.html
1•donutshop•15m ago•0 comments

Show HN: Yet another colour palette generator, but it's a cool one

https://fungiboletus.github.io/MicroColourGPT3000/
1•speedgoose•16m ago•1 comments

Claude Code Or: How I Learned to Stop Worrying and Love the Agent

https://brian.jp/blog/claude-code-or-how-i-learned-to-stop-worrying-and-love-the-agent-34/
1•lofties•18m ago•1 comments

US troops were told war on Iran was 'all part of God's divine plan'

https://www.theguardian.com/world/2026/mar/03/us-israel-iran-war-christian-rhetoric
2•KnuthIsGod•19m ago•0 comments

US launches military operations in Ecuador

https://www.politico.com/news/2026/03/03/us-military-operations-ecuador-00811272
3•c420•19m ago•1 comments

A record number of objects went into space in 2025

https://ourworldindata.org/data-insights/a-record-number-of-objects-went-into-space-in-2023
1•m-hodges•20m ago•0 comments

npmx: a fast, modern browser for the npm registry

https://npmx.dev/blog/alpha-release
1•OuterVale•23m ago•0 comments

Feature led building vs. user led building

https://salah.louizy.com/blog/feature-led-building-vs-user-led-building/
1•losalah•26m ago•0 comments

I used the new Linux Terminal on Android and I'm impressed

https://www.makeuseof.com/used-new-linux-terminal-on-android-impressed/
1•thunderbong•26m ago•0 comments

Show HN: Deploy OpenClaw in Seconds

https://deplyclaw.ai/
1•Creator-io•28m ago•0 comments

Oval – Native macOS client for Open WebUI with on-device voice mode

https://github.com/shreyaspapi/Oval
1•shreyaspapi•34m ago•1 comments

Redesigning Mathematics for Elegant Physics

https://twitter.com/devrimyasar/status/2029006461267857637
1•aesopsfable•36m ago•0 comments

How Mossad hacked traffic cameras to track Ayatollah Khamenei

https://www.google.com/search?q=How+Mossad+hacked+traffic+cameras+to+track+Ayatollah+Khamenei
5•asdefghyk•39m ago•1 comments

Show HN: Hacking Sony A6000 for Fun

https://docodethatmatters.com/hacking-sony-a6000-for-modernization/
1•skittleson•39m ago•0 comments

How Anonymous Bettors Cashed in on the Iran Strike, Hours Before It Happened

https://www.nytimes.com/2026/03/03/upshot/prediction-markets-iran-strikes.html
3•jbegley•39m ago•0 comments

Better JIT for Postgres

https://github.com/vladich/pg_jitter
2•vladich•41m ago•0 comments

Earthquake-Proof Foundations

https://practical.engineering/blog/2026/3/3/earthquake-proof-foundations
1•vismit2000•42m ago•0 comments

Windows 12 will need 40 TOPS AI NPU chip to run

https://tbreak.com/windows-12-leaked-2026-ai-npu-requirement/
2•KnuthIsGod•42m ago•3 comments