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?

For Renovation Contractors and DIYers

https://renosheets.com/
1•LGMTL•1m ago•1 comments

Gemma 4 QAT models: Optimizing compression for mobile and laptop efficiency

https://blog.google/innovation-and-ai/technology/developers-tools/quantization-aware-training-gem...
1•theanonymousone•2m ago•0 comments

Show HN: Solectio – design, compare and share rooftop solar configurations

https://solectio.ottimai.com/
1•leomos•4m ago•0 comments

Let's celebrate work that is 100% human-made

https://www.human-made.work/
1•supryan•4m ago•0 comments

The Self-Tracking Trap: When More Health Data Creates More Anxiety

https://www.businessinsider.com/wellness-tracking-apps-sleep-score-stress-hurting-health-2026-6
1•sahar_builds•5m ago•0 comments

Mapped all 10 types against weaknesses in Pokémon TCG Pocket (interactive grid)

https://pocketcards.net/matchups
1•bat0x01•5m ago•0 comments

Y Combinator's CEO says he ships 37,000 lines of AI code per day

https://www.fastcompany.com/91520702/y-combinator-garry-tan-agentic-ai-social-media
2•claudiacsf•5m ago•0 comments

Ask HN: Are orbital data centers possible / a good idea?

2•aronowb14•7m ago•1 comments

Jolt: Clojure Interpreter on Janet

https://github.com/yogthos/jolt/
6•veqq•12m ago•0 comments

Show HN: A Simplistic UI for Rich Hickey's Design in Practice

https://github.com/bmillare/design_in_practice_ui
2•bmillare•12m ago•1 comments

Show HN: DSA Trainer, LeetCode practice with a hint ladder instead of spoilers

https://dsatrainer.com/
1•dsatrainer•12m ago•0 comments

U.S. Military Turned GPS into a Global "Numbers Station"

https://www.404media.co/the-u-s-military-quietly-turned-gps-into-a-global-numbers-station-evidenc...
4•awkwardpotato•15m ago•0 comments

Vibe Justice System – AI Courts convened in pursuit of correctness

https://github.com/wlilley93/vibe-justice-system
2•wlilley93•15m ago•0 comments

Alien hunters update guidance on sharing news of possible intelligent life

https://www.theguardian.com/science/2026/jun/05/alien-hunters-seti-guidance-signals-intelligent-life
3•root-parent•15m ago•0 comments

10k Lines Later: When a Tool Became a Compiler [video]

https://www.youtube.com/watch?v=wVQLEAHrwrI
4•robspairpears•15m ago•0 comments

Suppression of the integrated stress response extends lifespan in the fly

https://www.pnas.org/doi/10.1073/pnas.2518812123
2•PaulHoule•17m ago•0 comments

Software Engineering is the new Manufacturing Engineering

https://halecraft.org/software-engineering-is-the-new-manufacturing-engineering/
4•canadaduane•18m ago•0 comments

Building Xbox Games with Godot: A New Sample to Get You Started Faster

https://developer.microsoft.com/en-us/games/articles/2026/06/building-xbox-games-with-godot/
3•HelloUsername•19m ago•0 comments

AI must foster 'maternal instincts' or we risk extinction, warns Geoffrey Hinton

https://www.cbc.ca/radio/ideas/geoffrey-hinton-maternal-instincts-9.7094116
4•geox•19m ago•1 comments

U.S. attorney says election fraud probes are underway in California

https://ktla.com/news/local-news/u-s-attorney-says-election-fraud-probes-are-underway-in-california/
3•Bender•19m ago•2 comments

A healthier gut may be key to cancer care

https://www.cnn.com/2026/06/05/health/gut-microbiome-immunity-cancer-ghrc
3•Bender•21m ago•0 comments

The largest cannabis study ever: It may make anxiety, depression and PTSD worse

https://thesciverse.org/the-largest-cannabis-study-ever-conducted-found-no-evidence-it-helps-anxi...
3•RickJWagner•21m ago•0 comments

pg_durable: Microsoft open sources in-database durable execution

https://github.com/microsoft/pg_durable
25•coffeemug•21m ago•3 comments

Machine-verified proof that M3P ∈ P and P = NP via Pedigree Polytopes

https://github.com/TiruArt/Pedigree-Polytopes-Lean4
3•carlsverre•21m ago•2 comments

Public transport network partially shut–down bosses forgot to pay internet bill

https://www.dailymail.com/news/article-15876799/san-francisco-bart-shutdown-clipper-internet-bill...
2•Bender•23m ago•1 comments

Here's why I created a travel website for robots

https://alexpanetta.substack.com/p/heres-why-i-created-a-travel-website
1•throw0101a•24m ago•0 comments

Tips to get the most out of OpenCode

https://byandrev.dev/en/blog/10-best-practices-for-opencode
2•mcormik•25m ago•0 comments

Flood of AI 'garbage' is pushing open-source developers to the limit

https://www.newscientist.com/article/2527761-flood-of-ai-garbage-is-pushing-open-source-developer...
2•mattsparkes•27m ago•1 comments

Configuration flags are where software goes to rot

https://00f.net/2026/04/11/config-flags/
2•birdculture•28m ago•0 comments

CrankGPT: A human-powered local and private AI solution

https://crankgpt.com/
3•_ihaque•29m ago•0 comments