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?

Juan Pujol Garcia: WWII's best double agent

https://en.wikipedia.org/wiki/Juan_Pujol_Garc%C3%ADa
1•FinnLobsien•1m ago•0 comments

Hades: The malware that lies to AI security agents

https://www.infoworld.com/article/4182692/meet-hades-the-malware-that-lies-to-ai-security-agents....
1•chmaynard•2m ago•0 comments

Apple Intelligence Can Change Your Passwords for You When You Get Hacked

https://gizmodo.com/apple-intelligence-can-change-your-passwords-for-you-when-you-get-hacked-2000...
1•voisin•3m ago•0 comments

Record Conflicts Drive Peace to Historic Low as AI Warfare Surges

https://www.visionofhumanity.org/record-conflicts-drive-peace-to-historic-low-as-ai-warfare-surges/
1•geox•7m ago•0 comments

Show HN: Open dataset for distilling GPU audio2face models to CPU students

https://huggingface.co/datasets/myned-ai/audio2face-emotion-arkit-teacher
1•antonios_makro•9m ago•0 comments

Add basic "comptime" fn implementation (Rust)

https://github.com/rust-lang/rust/pull/148820
1•dabinat•11m ago•0 comments

How We Built Automatic Invoice Reconciliation Without AI

https://usecycle.co/blog/zero-reconcilation-for-invoices
1•aswinmohanme•14m ago•0 comments

The emerging AI x TechBio stack (120 companies mapped)

https://mmc.vc/research/ai-x-techbio-featuring-the-future-of-drug-discovery/
1•advikipedia•17m ago•0 comments

New Radio Telescope Prototype Has First Light Milestone

https://www.universetoday.com/articles/the-next-generation-very-large-array-prototype-ngvla-gathe...
1•rbanffy•17m ago•0 comments

Every GPS satellite is a numbers station

https://andreafortuna.org/2026/06/09/gps-numbers-station/
1•nosky•17m ago•0 comments

Whichever of the purple dots you look at turns more purple

https://bsky.app/profile/telescoper.bsky.social/post/3mnpq5qo3i22a
1•doener•17m ago•1 comments

Show HN: Mothertoken – know the mother tongue of your LLMs

https://mothertoken.inigoimaz.com/
1•inimaz•18m ago•0 comments

An experimental coding agent for small (<10B) and tiny (<1B) LLMs

https://github.com/brainless/nocodo
1•brainless•18m ago•1 comments

Ask HN: How to get your child interested in math?

1•gitowiec•18m ago•1 comments

Python: Difference between len() and .__len__()

https://stackoverflow.com/questions/2481421/difference-between-len-and-len
2•tosh•24m ago•0 comments

On The Difference Between Rest and Idleness.

https://idle.news/blog/on-the-difference-between-rest-and-idleness/
2•bookofjoe•27m ago•0 comments

Glone: A CLI to back up all your GitHub repositories

https://github.com/joaopalmeiro/glone
1•joaopalmeiro•28m ago•0 comments

Fairplayer

https://fairplayer.band/player/
1•drcongo•28m ago•0 comments

Vintage AMD R600 Graphics Driver Sees Code Cleanups Thanks to GitHub Copilot

https://www.phoronix.com/news/AMD-R600-Driver-Copilot-Cleanup
1•giuliomagnifico•30m ago•0 comments

CoAnalyst360 Multi-Agent AI Platform for Investigative Questions

https://www.penlink.com/press-release/coanalyst360-launch/
1•sharpshadow•32m ago•0 comments

Why cheap online shopping is about to change for Irish consumers

https://www.rte.ie/brainstorm/2026/0609/1576806-online-shopping-customs-duties-ireland-eu-regulat...
3•austinallegro•33m ago•0 comments

Show HN: Why aren't popular book trackers offline-first?

2•thedetailsguy•34m ago•0 comments

The iPhone's Last Stand

https://stratechery.com/2026/the-iphones-last-stand/
2•swolpers•35m ago•0 comments

Show HN: TripoSplat Running in the Browser

https://splat.sqrm.co/
1•fursund•36m ago•0 comments

Perplexity plans IPO in 2028 regardless of what happens to Anthropic or OpenAI

https://www.cnbc.com/2026/06/09/perplexity-ipo-2028-as-anthropic-openai-prepare-listings.html
4•thm•36m ago•0 comments

Ötzi the Iceman is long dead, but some of his ancient microbes are still alive

https://www.cnn.com/2026/06/08/science/otzi-the-iceman-microbial-activity
2•thm•39m ago•1 comments

Warning Maravel-Framework 10.x Tagged Cache in JWT Blacklist

https://marius-ciclistu.medium.com/the-hidden-architecture-trap-why-laravels-tagged-cache-jwt-is-...
1•marius-ciclistu•44m ago•0 comments

Apple Silicon Cuts Mac Failure Rates in Half

https://www.forbes.com/sites/barrycollins/2026/06/09/apple-silicon-cuts-mac-failures-in-half-says...
4•newsymonger•44m ago•0 comments

Leading supplier of research monkeys declares bankruptcy

https://www.science.org/content/article/leading-supplier-research-monkeys-declares-bankruptcy
5•pseudolus•46m ago•0 comments

SQLite improving performance with pre-sort

https://andersmurphy.com/2026/06/07/sqlite-improving-performance-with-pre-sort.html
3•andersmurphy•46m ago•0 comments