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?

Windows 11's "special" developer edition looks like another marketing misfire

https://www.neowin.net/opinions/windows-11s-special-developer-edition-sounds-like-yet-another-mar...
2•bundie•4m ago•0 comments

Why can't human care be more like a vet visit?

https://www.seattletimes.com/opinion/why-cant-human-care-be-more-like-a-vet-visit/
1•bookofjoe•7m ago•1 comments

Bobbin: Pentest with a local LLM, so target data never leaves your machine

https://github.com/daniele110199/bobbin
1•daniele110199•8m ago•1 comments

Eigen Hacks embeds this site in eigenbasis of all news

https://eigenhacks.com
1•setuporg•9m ago•1 comments

Creativity: The Helsinki bus station theory

https://medium.com/change-your-mind/the-most-powerful-lesson-on-creativity-youll-ever-hear-helsin...
1•RetroTechie•9m ago•2 comments

Jensen Huang: GPT-6 Astra Trained on ~100K+ Nvidia Grace Blackwell NVLink72

https://twitter.com/JensenHuang/status/2096700264569090384
1•vertigoruntime•11m ago•0 comments

Explaining the Predictive Performance of Police in Cases of Domestic Abuse

https://ideas.repec.org/p/nbr/nberwo/35672.html
1•neehao•12m ago•0 comments

The American West's water is increasingly fought over

https://www.economist.com/united-states/2026/09/06/the-american-wests-water-is-increasingly-fough...
1•toomuchtodo•14m ago•0 comments

Signing TLS handshakes inside a TPM

https://bschaatsbergen.com/posts/go-tpm-tls/
4•bschaatsbergen•15m ago•0 comments

Show HN: Opinionated Workflow Builder

https://ckluis.github.io/workflowForge/
1•ckluis•16m ago•0 comments

Amusing Ourselves to Death

https://en.wikipedia.org/wiki/Amusing_Ourselves_to_Death
2•simonebrunozzi•19m ago•0 comments

Mostik.ai – latent communication between AI models

https://mostik.ai/read-more
2•zX41ZdbW•19m ago•0 comments

Show HN: Deviant – Sci-Fi Thriller Movie about the Threat/Promise of AI

https://www.youtube.com/watch?v=WTbYRsC8NZw
3•johnpolacek•19m ago•1 comments

Show HN: Tree Whisper Free, open-source dictation for Mac

https://www.treewhisper.app/
2•Rutledge•23m ago•0 comments

'The engine's on fire': Qantas flight from Queenstown to Sydney

https://www.theguardian.com/australia-news/2026/sep/06/qantas-flight-queenstown-to-sydney-reroute...
3•Alien1Being•23m ago•0 comments

Far-right AfD wins historic victory in German state election

https://www.reuters.com/world/germanys-far-right-afd-seeks-landmark-state-victory-saxony-anhalt-v...
2•JumpCrisscross•29m ago•1 comments

The Story of VS Code (Documentary) [video]

https://www.youtube.com/watch?v=kHL3XzjpT5w
1•jonbaer•30m ago•0 comments

Show HN: Puzzle Rush, but for Go

https://tsumerush.com/
3•kyubic•32m ago•1 comments

The Community Firmware for Sensor Watch

https://www.sensorwatch.net/docs/movement/
4•Bluestein•33m ago•0 comments

A public noticeboard for AI agents

https://agents.scrygl.dev/
2•d3nit•35m ago•0 comments

Verflink, a link checker that catches affiliate tags stripped in redirects

https://verflink.com/
2•verflink•35m ago•0 comments

Show HN: Mador – Make any DOM reactive with a tiny 80-line Proxy state tuple

https://github.com/marsbos/mador
20•bosmarcel•35m ago•6 comments

XCancel is available again

https://xcancel.com/about
17•1matin•35m ago•1 comments

Show HN: Byosynch – Continuous two-way file sync over SSH for Mac and Linux

https://byosynch.com/
2•hamiltonc•36m ago•0 comments

The CINT C/C++ Interpreter

https://web.archive.org/web/20081226231317fw_/http://root.cern.ch/twiki/bin/view/ROOT/CINT
2•GaryBluto•42m ago•1 comments

Salt Men of Iran (2011)

https://web.archive.org/web/20140317115651/http://www.pasthorizonspr.com/index.php/archives/06/20...
3•joebig•42m ago•0 comments

Ask HN: Show your micro-SaaS (September 2026)

3•genekrapivin•43m ago•0 comments

browser_image.png shows different text in the image if you open it in Safari

https://lr0.org/browser_image.png
3•lr0•46m ago•1 comments

It took a year to ship WebAssembly in Anubis

https://anubis.techaro.lol/blog/2026/anubis-wasm/
27•xena•48m ago•11 comments

Watch GPT 6 play NetHack

https://www.twitch.tv/vaguely_aligned
2•kenforthewin•48m ago•0 comments