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

Bring Back Doors – Bring Bathroom Doors Back to Hotels

https://bringbackdoors.com/
2•bariumbitmap•1m ago•0 comments

US Navy scuttles Constellation frigate for being too slow for tomorrow's threats

https://www.theregister.com/2025/11/26/navy_constellation_frigate/
2•Bender•8m ago•0 comments

Crocs get the Xbox treatment with sole-crushing price of $80

https://www.theregister.com/2025/11/26/microsoft_xbox_crocs/
1•Bender•11m ago•1 comments

Seal milk more refined than breast milk

https://www.eurekalert.org/news-releases/1106900
1•gmays•12m ago•0 comments

Abliterated Large Language Models Treat Users as Capable Adults

https://kirill.korins.ky/articles/abliterated-large-language-models-treat-users-as-capable-adults/
1•nerfur•13m ago•0 comments

Why You Must Learn Before You Prompt

https://imapenguin.com/2025/11/first-principles-why-you-must-learn-before-you-prompt/
2•atan2•15m ago•0 comments

Apple's Using 3D Printing in the iPhone Air

https://www.ifixit.com/News/114439/okay-so-apples-using-3d-printing-in-the-iphone-air-but-how
2•AareyBaba•16m ago•0 comments

Rocky Linux 10.1 Released as Community Alternative to RHEL 10.1

https://www.phoronix.com/news/Rocky-Linux-10.1-Released
3•Bender•16m ago•0 comments

AI Companions Are the Next Interface

https://www.emotionmachine.com/blog/ai-companions-are-the-next-interface
1•sarbak•17m ago•0 comments

AI Is Eating the World

https://www.ben-evans.com/presentations
2•brettcvz•20m ago•1 comments

JudgeAI: An Attempt to Build an Automated Court System

https://portal.judgeai.space/
1•YuriKozlov•25m ago•0 comments

Nerd-Sniped: Project Search

https://zed.dev/blog/nerd-sniped-project-search
2•nijaru•25m ago•0 comments

Apple Asks Indian Court to Block Antitrust Law Allowing $38B Fine

https://www.macrumors.com/2025/11/26/apple-india-antitrust-law-challenge/
2•7777777phil•26m ago•0 comments

The Thinking Game(DeepMind Documentary) Available for Free on YouTube

https://youtu.be/d95J8yzvjbQ?si=iXTJzjNzzozX14Jo
1•alexcos•27m ago•0 comments

Why Strong Consistency?

https://brooker.co.za/blog/2025/11/18/consistency.html
2•SchwKatze•27m ago•0 comments

Show HN: A visual AI interface to understand topics/books/papers with LLMs

https://www.kerns.ai/
1•kanodiaayush•28m ago•0 comments

Xtd: Modern C++20 framework (CLI, GUI, unit tests)

https://gammasoft71.github.io/xtd/
1•dmacvicar•29m ago•0 comments

Genesis Mission: A National Mission to Accelerate Science Through AI

https://genesis.energy.gov/
1•donutloop•29m ago•0 comments

Online Tools Aggregator

https://www.tools-best.com/
1•levigrace•30m ago•1 comments

Show HN: White-Box-Coder – AI that self-reviews and fixes its own code"

https://github.com/EMMA019/WHITE-BOX-CODER
1•tarocha1019•30m ago•0 comments

Greek Cybercrime Unit Shuts Down IPTV Pirates, 68 End Users Face Fines

https://torrentfreak.com/cybercrime-unit-shuts-down-iptv-pirates-68-end-users-face-fines-251126/
1•gslin•30m ago•0 comments

Tailwind - How I think about CSS authorship in 2025

https://wlls.dev/blog/on-tailwind
1•devalexwells•32m ago•0 comments

Antimatter Development Program – Casey Handmer's Blog

https://caseyhandmer.wordpress.com/2025/11/26/antimatter-development-program/
3•bilsbie•33m ago•0 comments

EU approves Chat Control policy

https://www.techradar.com/vpn/vpn-privacy-security/chat-control-eu-lawmakers-finally-agree-on-the...
40•mseri•35m ago•5 comments

Juno Neutrino Observatory Releases First Results

https://www.scientificamerican.com/article/juno-neutrino-observatory-releases-first-results/
4•quapster•38m ago•0 comments

Brain Has a Built-In Isolation Mode

https://neurosciencenews.com/neuroscience-sickness-isolation-29979/
3•gmays•41m ago•0 comments

WeDo: Collaborative gift registry that solves the holiday coordination headache

https://www.wedoto.day
2•tmanderson•46m ago•1 comments

Prepared Statements? Prepared to Be Vulnerable

https://blog.mantrainfosec.com/blog/18/prepared-statements-prepared-to-be-vulnerable
2•eqarmada2•47m ago•2 comments

The Cause of Cultural Stagnation

https://www.slowboring.com/p/the-hidden-cause-of-cultural-stagnation
2•noisymortimer•48m ago•1 comments

David Lerner, cofounder of Tekserve, has died

https://www.nytimes.com/2025/11/26/technology/personaltech/david-lerner-dead.html
3•NaOH•49m ago•1 comments