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

Incremental Compilation with LLVM

https://ziglang.org/devlog/2026/#2026-04-08
1•birdculture•26s ago•0 comments

I built a skill manager for AI agents. The agents install the skills themselves

https://github.com/nattergabriel/reseed
1•eterer•1m ago•0 comments

I built a programming language in 6 days without writing a single line of code

https://github.com/Quynah/ape-lang
1•Quynah•1m ago•1 comments

Digital World Statistics in Real Time

https://anythingcounter.com
1•digitalofen•2m ago•0 comments

Pizza Tycoon Deluxe Bundle

https://store.steampowered.com/bundle/6361/Pizza_Connection__Deluxe/
1•doener•16m ago•0 comments

Scoop: Microsoft Is Pausing Carbon Removal Purchases

https://heatmap.news/carbon-removal/microsoft-carbon-removal-pause
1•doener•17m ago•0 comments

Claude API Error: 529

3•anujbans•17m ago•1 comments

Tomato – Visual DAG editor for NixOS configurations

https://github.com/thatsme/Tomato
2•alessio66•18m ago•0 comments

The hottest Apple product isn't what you think

https://www.cnn.com/2026/04/10/tech/apple-mac-mini-ai-openclaw
1•abe94•19m ago•0 comments

Build a viral website, win $1000

https://launchyard.dev/contest
1•hackmaxim•23m ago•1 comments

My AI workflow evolved from prompts to a near-autonomous workflow

3•hoangnnguyen•24m ago•1 comments

Parakeet Streaming ASR on Apple Silicon via CoreML – and Swift Demo App

https://old.reddit.com/r/iOSProgramming/comments/1sickii/streaming_asr_on_apple_silicon_via_corem...
2•ipotapov•24m ago•0 comments

News is bad for you (2013)

https://www.theguardian.com/media/2013/apr/12/news-is-bad-rolf-dobelli
3•downbad_•30m ago•2 comments

Hello, Liquid Fox (A Nice macOS Firefox Theme)

https://miloszfalinski.com/hello-liquid-fox-a-nice-macos-firefox-theme/
1•alin23•32m ago•0 comments

The Apple Museum Officially Opens April 2 – Update – Stichting the Apple Museum

https://applemuseum.nl/updates/the-apple-museum-officially-opens-april-2/
1•janandonly•42m ago•0 comments

Jolgbs

1•google_play_hn•49m ago•0 comments

CoLaptop – Personal Laptop Colocation Service

https://www.colaptop.com/
2•pabs3•50m ago•0 comments

Dancer with MND performs on stage again through digital avatar

https://www.bbc.co.uk/news/articles/cgqkz5lzvnwo
1•ColinEberhardt•52m ago•0 comments

Falco's Convergence: Bitcoin-Core Reform Agenda (Via Information-Reveal) [pdf]

https://cppalliance.org/tools/bitcoin-core-reform-agenda.pdf
1•vinniefalco•52m ago•0 comments

ThinkPad X1 Carbon 14: Light on Weight, Heavy on Intelligence

https://www.lenovo.com/us/en/p/coming-soon/lenovo-thinkpad-x1-carbon-gen-14-aura-edition-14-inch-...
2•seekdeep•52m ago•0 comments

Ask HN: Best books on building a programming language

2•ezzato•54m ago•1 comments

Runtime augmentation of Hugging Face without modifying source – CMPSBL Demo

https://github.com/SweetKenneth/transformers-ascended-verified
2•promptfluid•55m ago•1 comments

How to Solve SBoM Sprawl: From Static Files to Vex and Automation

https://anchore.com/blog/sbom-sprawl-paradox/
1•Tomte•55m ago•0 comments

Gigi – Geometric Intrinsic Global Index – A new approach to database queries

https://www.davisgeometric.com/gigi#home
1•thunderbong•55m ago•0 comments

MLSharp Single-View High-Quality AI Reconstruction Pipeline

https://suto.bex.jp/mac/mlsharp/index.html
1•mvdwoord•55m ago•1 comments

AI is the boss at this retail store. What could go wrong?

https://www.nbcnews.com/tech/innovation/ai-store-sf-san-francisco-bay-area-andon-labs-market-boss...
2•divbzero•58m ago•0 comments

IPFS Bot AI Agent Content

https://ipfs.bot/
1•sucid•59m ago•0 comments

Relics of the Heroic Age of Manned Space Flight

http://heroicrelics.org/index.html
1•zdgeier•59m ago•0 comments

Securing ECC Cryptocurrencies Against Quantum Vulnerabilities

https://arxiv.org/abs/2603.28846
1•u1hcw9nx•1h ago•1 comments

Premium: The Hater's Guide to OpenAI

https://www.wheresyoured.at/hatersguide-openai/
2•mc-serious•1h ago•0 comments