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

Show HN: Oriane – We watch every TikTok and Reel for brand teams

https://www.oriane.xyz
1•julienverse•32s ago•0 comments

Stripe.Dev Infinite Scroll Animates Developers Chant

https://stripe.dev/
1•skadamat•1m ago•0 comments

How HN: I aggregated 17 years of the Guardian's Blind Date column

https://blinddates.rory.codes/
1•mrroryflint•1m ago•1 comments

Encyclopedia Evalica

https://www.braintrust.dev/encyclopedia
1•i0exception•1m ago•0 comments

Google now offers up to $1.5M for some Android exploits

https://www.bleepingcomputer.com/news/security/google-now-offers-up-to-15-million-for-some-androi...
1•Brajeshwar•1m ago•0 comments

Opposition to AI Data Centers Is a 'Bipartisan Issue'

https://www.nytimes.com/2026/05/01/us/politics/liberals-conservatives-data-centers.html
1•npilk•2m ago•0 comments

The growing risk of a 'non-linear spike' in oil prices

https://www.ft.com/content/8ebecab1-552e-4e12-96cf-c36d738aeb2e
1•_tk_•3m ago•0 comments

Tell HN: Archive.ph Is Gone

2•_tk_•3m ago•0 comments

When Agent Memory Becomes a Platform Concern

https://medium.com/@wjackson_63436/when-agent-memory-becomes-a-platform-concern-4b6cd23af47f
1•rdwj•4m ago•1 comments

IPCC Admits Apocalyptic Climate Scenarios Are "Implausible"

https://dailysceptic.org/2026/05/05/ipcc-admits-apocalyptic-climate-scenarios-are-implausible-mea...
1•bilsbie•5m ago•0 comments

How AI Works Under the Hood: LLMs Explained with Code

https://nitayneeman.com/blog/how-ai-works-under-the-hood-llms-explained-with-code/
1•nitayneeman•5m ago•0 comments

Adobe's 'Modern' User Interface Is Just Webpages

https://pxlnv.com/linklog/adobe-modern-user-interface/
1•JumpCrisscross•6m ago•0 comments

Telemetry for Claude Code

https://latitude.so/claude-code
1•paulaq•7m ago•0 comments

Show HN: Furwall – macOS menu bar app that blocks keys when your cat sits down

https://olliewagner.com/furwall
3•olliewagner•8m ago•0 comments

B.sc. MLT Fresh or Experienced

1•AI_Master•10m ago•0 comments

I built a Tensorflow.js Neural Cellular Automata into my website

https://www.adamlusted.com/
2•etoxin•10m ago•0 comments

You Don't Review Your Compiler Output

https://scottrfrancis.wordpress.com/2026/02/13/you-dont-review-your-compiler-output/
1•delamon•11m ago•0 comments

Algebrica.org is now open source

https://algebrica.org/
1•tzury•11m ago•1 comments

Popular DAEMON Tools software compromised

https://securelist.com/tr/daemon-tools-backdoor/119654/
1•l2dy•14m ago•0 comments

AI Agents Don't Sleep. That's the Problem.

https://substack.com/home/post/p-196021996
2•apattichis•15m ago•0 comments

Grid World (2023)

https://alex.miller.garden/grid-world/
1•alentodorov•15m ago•0 comments

Unpredictability creates alpha: Stock picking

https://klementoninvesting.substack.com/p/unpredictability-creates-alpha-stock
1•RickJWagner•17m ago•0 comments

The Retirement of the PHP License

https://lwn.net/Articles/1071253/
1•Brajeshwar•17m ago•0 comments

iOS 27 is adding a 'Create a Pass' button to Apple Wallet

https://walletwallet.alen.ro/blog/ios-27-wallet-create-pass/
10•alentodorov•17m ago•1 comments

Adding Pyrefly Type Checking to Your Agentic Loop

https://pyrefly.org/blog/pyrefly-agentic-loop/
1•ocamoss•18m ago•0 comments

Astronomers release massive set of 'virtual universes' for global research

https://phys.org/news/2026-04-astronomers-massive-virtual-universes-global.html
2•bookofjoe•23m ago•0 comments

History-preserving fork maintenance with Git

https://amboar.github.io/notes/2021/09/16/history-preserving-fork-maintenance-with-git.html
1•ankitg12•24m ago•0 comments

Show HN: Hora, a native Google Calendar app for macOS

https://horacal.app/
1•szamski•27m ago•2 comments

Ask HN: Are you optimizing content for AI Search (GEO) vs. traditional

2•shahisoft•28m ago•0 comments

Claude Security

https://claude.com/solutions/security
4•mistermatt•29m ago•0 comments