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?

GitHub is (partially) down again. Do you look for alternatives?

1•Hypnosis6173•1m ago•0 comments

Bitcoin pump to $63,700 triggers the most short liquidations since late April

https://www.coindesk.com/markets/2026/06/08/bitcoin-pump-to-usd63-700-triggers-the-most-short-liq...
1•Varun-Sakhuja•3m ago•0 comments

Mimo v2.5 is better deal than DeepSeek v4 flash

1•shivang2607•3m ago•0 comments

Show HN: Image-3D: photo to 3D splat that runs in the browser

https://mukba.ng/image-3d/
1•mnorris•5m ago•0 comments

The EU Open Source Strategy

https://digital-strategy.ec.europa.eu/en/policies/open-source-strategy
2•vrganj•9m ago•0 comments

DoomBench – benchmarking data stacks running Doom

https://cedardb.com/blog/doombench/
1•krishadi•10m ago•0 comments

GitHub Is Down

https://www.githubstatus.com/incidents/m7n7sm0sr1pz
7•cosuhi•15m ago•2 comments

Atlantic 'cold blob' likely caused by weakening AMOC near a tipping point

https://phys.org/news/2026-06-atlantic-cold-blob-weakening-ocean.html
1•btilly•16m ago•0 comments

A Languages Visualization Experiment

https://github.com/PEZ/languages-visualizations/
1•tosh•19m ago•0 comments

AI Has a Measurement Problem – And it's everyone's problem

https://luisgardea.substack.com/p/ai-has-a-measurement-problem
1•gallardo147•22m ago•1 comments

A 'Miraculous Transformation': How Kim Jong-Un Fortified North Korea

https://www.nytimes.com/2026/06/08/world/asia/north-korea-kim-jong-un-pandemic-economy.html
1•JumpCrisscross•24m ago•0 comments

Turn your architecture into a queryable knowledge graph (renders to Excalidraw)

https://github.com/BV-Venky/excalidraw-architect-mcp
2•Venky1729•25m ago•0 comments

Age verification tech could put children at greater risk, says think tank

https://www.computerweekly.com/news/366643835/Age-verification-tech-could-put-children-at-greater...
3•robtherobber•28m ago•0 comments

Minimal, Meaningful, Comfortable, Durable Bracelets for Dads

https://glintandluck.com/blogs/news/best-dad-bracelet-ideas-for-father-s-day-meaningful-gift-guide
1•Chris_taka•29m ago•0 comments

Show HN: Pingtrace

https://github.com/skhell/pingtrace
1•skhell•33m ago•0 comments

Gen Z turn to 'dopamine sites' for quick comfort

https://www.koreatimes.co.kr/lifestyle/trends/20260527/gen-z-turn-to-dopamine-sites-for-quick-com...
4•jnakano89•35m ago•1 comments

Show HN: Live Voice Translation Interpreter [video]

https://www.youtube.com/shorts/H1alb-d1fOo
1•julienreszka•35m ago•0 comments

Show HN: AI Boost – an MCP for accessing your everyday patterns

https://www.ai-boost.io/
1•npiano•38m ago•0 comments

NexusOS v2.0 – A zero-dependency pipeline streaming server chaos to Parquet

https://huggingface.co/datasets/Amman-shah/ecommerce-production-incident-postmortems
1•nexus_os•44m ago•0 comments

Ecotypes Harbor the Genetic Memory of a Species' Past

https://www.quantamagazine.org/how-ecotypes-harbor-the-genetic-memory-of-a-species-past-20260521/
2•vfalbor•44m ago•0 comments

Show HN: Multiplayer, session-based runtime data collection for coding agents

https://www.multiplayer.app/
1•argoeris•45m ago•0 comments

SwiftUI Only Makes It Easy to Develop Bad Apps

https://daringfireball.net/2026/06/swiftui_only_makes_it_easy_to_develop_bad_apps
2•frizlab•46m ago•0 comments

An open letter to office suite users, just before the Euro-Office announcement

https://blog.documentfoundation.org/blog/2026/06/08/an-open-letter/
2•linker3000•47m ago•0 comments

The notational conventions I adopted, and why (EWD 1300)

https://www.cs.utexas.edu/~EWD/transcriptions/EWD13xx/EWD1300.html
2•tosh•49m ago•0 comments

Show HN: Online Block Blast Solver – helps you find the best move when stuck

https://onlineblockblastsolver.com/
1•huzaifasinan•55m ago•0 comments

The Magnetic Shadow Effect [video]

https://www.youtube.com/watch?v=MuvuxHXLzls
1•thunderbong•57m ago•0 comments

Box Drawing

https://en.wikipedia.org/wiki/Box_Drawing
1•tosh•58m ago•0 comments

After centuries of trying, we've yet to arrive at a perfect way to map colour [video]

https://aeon.co/videos/after-centuries-of-trying-weve-yet-to-arrive-at-a-perfect-way-to-map-colour
1•the-mitr•1h ago•0 comments

Is This the Dawn of the Tokenpocalypse?

https://techcrunch.com/2026/06/07/is-this-the-dawn-of-the-tokenpocalypse/
19•pseudo-usama•1h ago•33 comments

How to Spot Greenwashing Claims When You Travel

https://www.wired.com/story/how-to-spot-greenwashing-when-you-travel/
4•joozio•1h ago•0 comments