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?

Send Screenshots to Your Clipboard: My #1 macOS Quality of Life Improvement

https://leonaves.com/blog/screenshots-to-clipboard/
1•leonaves•15s ago•0 comments

Why OpenHAB?

https://www.openhab.org/
1•Bluestein•2m ago•0 comments

Pretraining progress is mostly coming from data

https://www.dwarkesh.com/p/pretraining-progress-is-mostly-data
1•gmays•3m ago•0 comments

Autonomy Preservation

https://simonsocolow.com/blog/keeping-autonomy-when-using-ai/
1•ssocolow•8m ago•0 comments

Mark Zuckerberg: "Cambridge Analytica" (2017)

https://twitter.com/TechEmails/status/2099214399840059428
2•mfiguiere•9m ago•0 comments

France announces <€1B in emergency farm support after 2026 summer

https://www.thescottishfarmer.co.uk/news/26534316.france-unveils-eur1-1bn-aid-package-drought-hit...
1•nephihaha•10m ago•1 comments

Predicting and Altering Human Opinions

https://hunchfox.com/blog/predicting-and-changing-human-opinions.html
2•sahil_chaudhary•11m ago•0 comments

Solve the Loop: Attractor Models for Language and Reasoning

https://arxiv.org/abs/2605.12466
1•jerlendds•12m ago•1 comments

A computational constitution to stop LLM agents from bricking servers

https://github.com/misqe/zero-trust-llm
2•misqe•12m ago•0 comments

A Layman's Guide to Linux Distros

https://petrisha.club/a-laymans-guide-to-linux-distros
1•lylo•13m ago•0 comments

Building projects in the AI era for Software Engineers

https://hsnice16.medium.com/building-projects-in-the-ai-era-for-software-engineers-72f3ddcd2a40
1•hsnice16•13m ago•0 comments

Object Storage Costs Compared

https://objectcost.com
1•montyanderson•14m ago•0 comments

Show HN: Credit against tokenised stocks for agents. punish us please

https://vaaya.ai/credit-against-securities-for-agents
1•nakulkelkar•14m ago•0 comments

So software is mostly dead and hardware it is

https://twitter.com/levelsio/status/2099098086035382334
3•acopetkovic•15m ago•0 comments

Americans Go Off at Data Center Town Hall

https://www.youtube.com/watch?v=IxvjA3H8nYw
2•emsign•16m ago•0 comments

Show HN: VibeWorld – a shared terminal world for developers and scientists

https://github.com/SorBalda/vibeworld
2•sorbalda•17m ago•0 comments

Hitting a NERVE with attacks on AI-powered brain-computer interfaces

https://anil.recoil.org/notes/nerve-attacks
3•matt_d•18m ago•1 comments

Show HN: One year in making, private/colleberative HTML5-canvas based editor

https://www.tasfer.app/en/
1•hamza512b•19m ago•0 comments

Method and system for navigating paginated content in page-based increments (2008)

https://patents.google.com/patent/US7415666B2/en
2•aragonite•20m ago•0 comments

145 Days of Uptime, 56 TiB of Traffic, One Debian Upgrade

https://sarah-robin.com/blog/debian-12-13
1•sarah-robiin•22m ago•0 comments

VR still makes 40-70% of players want to throw up

https://www.pcgamer.com/vr-still-makes-40-70-of-players-want-to-throw-up-and-thats-a-huge-problem...
4•andsoitis•24m ago•1 comments

OrigamiPhone

https://edwinarb.us/origamiphone/
1•edwinarbus•24m ago•0 comments

Cybersickness Variability by Race: Findings from 6 Studies

https://pmc.ncbi.nlm.nih.gov/articles/PMC9201708/
2•andsoitis•25m ago•0 comments

How the opium trade built one of the great cities

https://worldhistory.substack.com/p/singapore-straits-and-shadows
1•gdillard•26m ago•0 comments

Show HN: Railo – Deterministic AST security patches verified with Z3 SMT

https://www.railo.dev
1•mdzariflatif•26m ago•0 comments

Everyone Is Mossad Now

https://rosslazer.com/posts/everyone-is-mossad-now/
2•rosslazer•26m ago•1 comments

There Is No AI (It's Just People) with Jaron Lanier

https://singjupost.com/startalk-there-is-no-ai-really-its-just-people-w-jaron-lanier-transcript/
14•andsoitis•36m ago•2 comments

Show HN: Exende – 10k active jobs from 300 company sources through one API

https://www.exende.dev
1•daniellax•37m ago•0 comments

Show HN: Kibble – a reader for AI news, tutorials, code and models

https://www.kibblebites.com/app/
2•syedmubarak088•38m ago•0 comments

The Seizure of Bab El-Mandeb: Why Tanker Rates Are Exploding [video]

https://www.youtube.com/watch?v=n76tCHtJfmQ
4•toomuchtodo•38m ago•0 comments