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?

Do Not Accept [video]

https://www.youtube.com/watch?v=6vxSjxOL8GQ
1•xqcgrek2•2m ago•0 comments

Show HN: Tab – a browser engine from scratch in Rust, with a demo to install

https://gettab.dev/
2•jakelami•8m ago•0 comments

Pond: A Fresh Arch-Based Linux with Niri

https://twitter.com/bflycomputer/status/2115147446385049758
2•belleville•9m ago•0 comments

BlackBlaze now explicitly states selling your data for advertisement

https://www.backblaze.com/company/policy/privacy
1•meysamazad•9m ago•0 comments

When an LLM Refuses to Answer

https://towardsdev.com/when-an-ai-refuses-to-answer-315d3277075c?sk=bae249916084db4096b5a2ba6dda13f4
1•cheikhdev•11m ago•0 comments

Show HN: MuGlobe – Explore the world's music by place on a globe

https://muglobe.com/
1•MuGlobe•13m ago•0 comments

Jj-musubi: live sync for Jujutsu

https://www.serpentine.com/posts/2026/announcing-jj-musubi/
1•blobcode•14m ago•0 comments

Ask HN: What is the best travel aggregator for cheapest flight tickets in 2026?

1•vismit2000•15m ago•0 comments

Show HN: I made my visual resume after 10 years

https://www.n10l.com/
2•n10l•16m ago•0 comments

Training Reasoning Models in Simulation to Natively Use Real Robots

https://mit-han-lab.github.io/pear-blog/
1•gmays•20m ago•0 comments

How do we get 1 TW a year of orbital compute by 2035?

1•chaisan•21m ago•0 comments

Delta-debugging trading strategies with ddmin and a paired block bootstrap

https://rearview.page/writing/delta-debugging-trading-strategies/
1•andzrev•22m ago•0 comments

The Kafkaian Agent Swarm That Locked Out My Cofounder

https://simeoncampos.substack.com/p/on-the-kafkaian-agent-swarm-that
2•yurivish•39m ago•0 comments

The 'Sullan Republic'

https://acoup.blog/2026/11/20/collections-on-the-sullan-republic/
1•JumpCrisscross•42m ago•0 comments

The Dangers of AI 'Handoverism'

https://www.ft.com/content/45194ea4-4fa7-4c38-a5b2-137eb7402d57
1•petethomas•42m ago•0 comments

Starlark Language for Embedding

https://starlark-lang.org/
1•jcbhmr•47m ago•0 comments

The Most Important Charts in AI Are Wrong

https://www.rameznaam.com/p/the-most-important-charts-in-ai-are
1•D-Machine•47m ago•1 comments

Gdelt TV News Visual Explorer

https://visualexplorer.gdeltproject.org/tvv
1•macinjosh•47m ago•0 comments

Images of Canada's most wanted are AI-generated

https://www.cbc.ca/news/canada/bolo-program-canada-fugitives-police-ai-9.7428331
1•geox•48m ago•0 comments

NATS Server 2.15: How we rebuilt scaling and moving streams safely

https://www.synadia.com/blog/how-we-move-streams-safely-nats-2-15-desired-state-reconciliation
1•taconn227•49m ago•0 comments

Materials chemist and nanoscientist George Whitesides dies at 87

https://cen.acs.org/people/obituaries/george-whitesides-materials-chemist-nanoscientist/104/web/2...
1•osnium123•49m ago•1 comments

Melania: The Series – a follow-up to the megaflop movie

https://www.ft.com/content/64d533cd-05b8-4d15-9fd2-ca4502d0f87e
1•petethomas•49m ago•1 comments

Clojure will affect the way you think about programming (2017)

https://eli.thegreenplace.net/2017/clojure-the-perfect-language-to-expand-your-brain/
2•sammatilda•52m ago•0 comments

The FBI was hacked again

https://www.cnn.com/2026/11/20/politics/fbi-hacked-again-target-crime-database
3•negura•53m ago•0 comments

Omacom Foundation to Sponsor Aurora Silicon

https://omarchy.org/news/2026/11/omacom-foundation-to-sponsor-aurora-silicon/
2•porjo•53m ago•0 comments

Putin was the real winner at the trilateral summit

https://www.ft.com/content/8f24b313-1b9a-401d-88e6-089aedc72519
2•petethomas•56m ago•0 comments

Clawdcursor Beats computer-use at every benchmark

https://clawdcursor.com
1•AmDab•57m ago•0 comments

Discord Rewrites Desktop and Mobile Clients in Rust

https://www.infoq.com/news/2026/11/discord-rust-rewrite-gpui-zed/
1•fork-bomber•1h ago•0 comments

Phoebe Bridgers banned phones at gigs; fans use art to remember them

https://www.bbc.co.uk/news/articles/cq7821d0pv49o
1•dofm•1h ago•1 comments

Verifying formal models of Raft implementations

https://antithesis.com/blog/2026/verifying-formal-models/
1•thunderbong•1h ago•0 comments