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?

The 'Screwfly Solution' Solution: Bi-Sexuality

https://gwern.net/screwfly
1•barry-cotter•1m ago•0 comments

Show HN: A BIOS-style terminal for observing a deterministic persistent world

https://speykye.github.io/persistent-world-observer-terminal/
1•Speykey•3m ago•1 comments

Judge halts Paramount's $111B purchase of Warner Bros. in win for US states

https://arstechnica.com/tech-policy/2026/07/judge-halts-paramounts-111b-purchase-of-warner-bros-i...
2•rbanffy•4m ago•0 comments

Did China just beat Intel?

https://twitter.com/SemiAnalysis_/status/2079251630608842814
2•xnhbx•8m ago•0 comments

Stacker – Deploy multi-container Docker stacks with one CLI command

https://github.com/trydirect/stacker
1•trydirect•10m ago•0 comments

AI-Assisted Vulkan Development

https://docs.vulkan.org/tutorial/latest/AI_Assisted_Vulkan/introduction.html
1•pjmlp•11m ago•0 comments

Configuration Complexity Clock (2012)

http://mikehadlow.blogspot.com/2012/05/configuration-complexity-clock.html
1•dwrodri•12m ago•0 comments

Figma Console MCP

https://github.com/southleft/figma-console-mcp
1•handfuloflight•13m ago•0 comments

Show HN: QuiverKit – 62 developer tools that run offline

https://quiverkit.dev
2•ensardev•13m ago•0 comments

Ask HN: I am building a app to deep search bookmarks from browser, X etc.

2•shafkathullah•16m ago•1 comments

Were you watching the World Cup or playing chess?

https://mastodon.online/@lichess/116952699800947773
1•plaguna•20m ago•0 comments

Agent solves problem in JavaScript but fails in TypeScript

https://twitter.com/dillon_mulroy/status/2079400950280663126
2•tosh•20m ago•0 comments

Show HN: Qscreen – tmux-like session manager for Windows PowerShell

https://github.com/dualface/qscreen
1•dualface•21m ago•0 comments

Set Cover Problem

https://en.wikipedia.org/wiki/Set_cover_problem
1•tosh•23m ago•0 comments

European Password Manager Shares [..] With State-Certified Russian Firm

https://www.occrp.org/en/investigation/european-password-manager-shares-origins-and-updates-with-...
3•defly•28m ago•1 comments

Ask HN: What are opinions on browser password manager vs. standalone?

2•omnifischer•28m ago•1 comments

Memory Safety's Hardest Problem

https://matklad.github.io/2026/07/20/memory-safety-hardest-problem.html
1•ingve•29m ago•0 comments

Ask HN: Claude Code or Codex?

4•czeizel•29m ago•4 comments

Palantir in Europe: 40 documented customer relationships across 14 countries

https://ciphercue.com/blog/palantir-in-europe-governments-companies-2026
2•adulion•31m ago•0 comments

KDE for Enterprise Needs a Strong PIM Infrastructure

https://ervin.ipsquad.net/blog/2026/07/21/kde-for-entreprise-needs-a-strong-pim-infrastructure/
4•hebus•32m ago•0 comments

DeepSWE – Best Benchmark for Evaluating AI Coding Agents?

https://www.i-programmer.info/news/105-artificial-intelligence/19016-deepswe-best-benchmark-for-e...
2•aquastorm•35m ago•1 comments

What if they are all wrong? (2020)

https://igorpak.wordpress.com/2020/12/10/what-if-they-are-all-wrong/
1•kkoncevicius•35m ago•0 comments

Armored Cars, Now on the American Road

https://www.nytimes.com/2026/07/20/style/armored-cars-bulletproof-american-drivers.html
2•reaperducer•35m ago•0 comments

Building Anthropic [video]

https://www.youtube.com/watch?v=om2lIWXLLN4
1•tosh•37m ago•0 comments

Windows 11 OpenSSH agent to WSL2

https://addshore.com/2023/07/windows-11-openssh-agent-to-wsl2/
2•ankitg12•39m ago•0 comments

CodeSizer: Why is that binary so big?

https://github.com/Wren6991/CodeSizer
1•birdculture•39m ago•0 comments

Ransomware attack on fairlife (company owned by Coca Cola)

https://www.sec.gov/Archives/edgar/data/21344/000162828026048466/ko-20260716.htm
1•wolfi1•40m ago•0 comments

Daily Urban Systems: where people live and where they work (the Netherlands)

https://regio.toekom.st/
2•overboil•42m ago•0 comments

Controlling user access in ScalarDB Cluster by using OIDC-based JWT tokens

https://medium.com/scalar-engineering/controlling-user-access-in-scalardb-cluster-by-using-oidc-b...
1•josh-scalar•42m ago•0 comments

Whats App Hack

https://news.ycombinator.com/newsguidelines.html
1•Armanlhan•44m ago•1 comments