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?

LA restaurant group used $60k Dodgers bet to hedge playoff risk, Kalshi says

https://www.reuters.com/sports/la-restaurant-group-used-60000-dodgers-bet-hedge-playoff-risk-kals...
1•simonpure•1m ago•0 comments

Show HN: A daily deduction puzzle where one hex on a nautical chart is a lie

https://cartographerslie.com
1•kevmarsh91•5m ago•0 comments

Molecular 'scissors' open path to new therapies

https://newsroom.uw.edu/news-releases/molecular-scissors-open-path-to-new-therapies
1•geox•7m ago•0 comments

Make System One Models Fight

https://system-one-arcade.fly.dev/
1•tarasyarema•7m ago•1 comments

Strip Digital Signatures from PDFs Before Feeding Them to AI (LinuxGuide)

https://medium.com/@GiovambattistaVieri/strip-digital-signatures-from-pdfs-before-feeding-them-to...
1•gvieri•9m ago•0 comments

Super Intelligence

https://www.si.gov/
6•wiradikusuma•11m ago•0 comments

PrivateNotes: Encrypted notes, tasks, files, passwords, journal and bookmarks

https://github.com/LifetimeLabsDev/PrivacyNotes.app
1•akyuu•13m ago•0 comments

Emmanuel Maignan's gnomonic catoptric astrolabe at Palazzo Spada (2024) [video]

https://www.youtube.com/watch?v=gPQNDe8YNvo
1•zeristor•15m ago•1 comments

Regular Expressions: Now You Have Two Problems (2008)

https://blog.codinghorror.com/regular-expressions-now-you-have-two-problems/
1•simonebrunozzi•17m ago•0 comments

Why some people say the 2-day weekend is due for a makeover

https://www.cbc.ca/lite/story/9.7382232
2•colinprince•17m ago•0 comments

The Making of Grand Theft Auto VI

https://www.bloomberg.com/features/2026-grand-theft-auto-6-making-of/
2•mgl•18m ago•0 comments

Show HN: Animated step-by-step hints for any cryptic crossword clue

https://crypticinkling.co.uk
1•hiroprotag•26m ago•0 comments

The orca brothers preying on great white sharks

https://www.bbc.com/future/article/20261015-sharks-washed-up-one-after-another-after-another-why-...
1•neom•28m ago•0 comments

The Ugly Dell That Became My Dream Retro Gaming PC (2025)

https://www.jamesfmackenzie.com/2025/12/28/the-ugly-dell-optiplex-that-became-my-dream-retro-gami...
1•naves•28m ago•0 comments

What happens when AI can read our minds?

https://www.ft.com/content/45ea3dd0-080d-49a2-86e9-df0148929bf4
1•bookofjoe•30m ago•1 comments

Microplastics React with Water, a New Study Says. That's a Problem for Biology

https://www.wired.com/story/microplastics-react-with-water-new-study-says-thats-a-problem-for-bio...
2•beardyw•30m ago•0 comments

Show HN: Which Mac runs which LLM, and how fast

https://macyou.co/mac-llm-calculator
2•bagdaerdev•32m ago•0 comments

Monazite ore holds the key to powerful motor magnets–if we can handle it

https://spectrum.ieee.org/monazite-rare-earth
1•thread_id•32m ago•0 comments

Show HN: RAE FAANG – catalog and CLI for building products with coding agents

https://github.com/EnzoVezzaro/rea-faang
1•undergroundengi•34m ago•0 comments

Show HN: Offscreen - Give your agents a Mac screen of their own

https://github.com/markphelps/offscreen
1•bullcitydev•35m ago•0 comments

Embeddinggemma-2 Transcribe with CUDA

https://github.com/skorotkiewicz/eg2-linux
1•modinfo•35m ago•0 comments

Bluegill Prime and Starfish Prime Tests of 1962 [video]

https://www.youtube.com/watch?v=MC0K3muUJp0
1•joebig•40m ago•0 comments

How I compute: an opinionated nerd post for computer nerds

https://carette.xyz/posts/how_do_i_compute/
3•LucidLynx•41m ago•0 comments

Interactive Linear Programming in the Browser

https://lpviz.net/
1•klamike•41m ago•0 comments

Natural Logic (2015) [pdf]

https://logic.berkeley.edu/colloquium/MossSlides.pdf
3•vitalnodo•42m ago•0 comments

Show HN: Reverse engineered my standing desk firmware

https://twitter.com/vinayjn7/status/2111387895646794180
1•rvinayjn7•42m ago•0 comments

Every game of chess ends prematurely

https://www.infinitelymore.xyz/p/chess-games-end-one-move-early?r=17mpnk&selection=52eafe8d-def4-...
2•tosh•47m ago•0 comments

Jxl-rs performance dashboard – last 100 commits

https://jxl-rs-perf.lucaversari.it/?config=desktop%7Csingle&image=ALL_GEOMEAN&metric=both&range=1...
1•mdf•48m ago•0 comments

One Parser,Two Bugs,Many Routers: Exploiting Broadcom WiFi Across ECos and Linux

https://quentinkaiser.be/security/2026/10/16/one-parser-two-bugs/
2•miniBill•50m ago•0 comments

Show HN: Right-click any log line to see its call stack in VS Code

https://marketplace.visualstudio.com/items?itemName=Suwapat.logcallstack
5•suwapat•53m ago•0 comments