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?

The Court That Will Believe Anything Is 'Race-Neutral

https://www.theatlantic.com/ideas/2026/06/scotus-asylum-racial-discrimination/687710/
1•Alien1Being•46s ago•0 comments

Benchmarking real-time voice translation

https://startpinch.com/research/en/speech_translation_benchmark
2•christiansafka•4m ago•0 comments

Th0rgal/open_oura: a Rust toolkit for the Oura Ring (Gen 3/4/5)

https://github.com/Th0rgal/open_oura
1•0xcrypto•9m ago•0 comments

DLL that was not present in memory despite not being formally unloaded

https://devblogs.microsoft.com/oldnewthing/20260625-00/?p=112467
4•ibobev•17m ago•0 comments

Software Taste vs. Slop in the Age of AI – TWSoftwareDev26

https://blog.herlein.com/post/wisdom-in-specs/
2•gherlein•20m ago•0 comments

Show HN: I built a strategic PvP word game where each move is just one letter

https://letterphile.com
2•sonOfHades•21m ago•1 comments

Local semantic search engine in Rust, no external DB

https://github.com/Gabriele06-local/LocalMind
1•Gabriele06_•22m ago•0 comments

Show HN: Claudete – Command a legion of Claude Code instances and shells

https://claudete.co
2•morion4000•24m ago•1 comments

Auditable Commercial License v1.0

https://www.auditablelicense.org/
1•ilreb•25m ago•0 comments

Kubernetes CPU requests and limits, explained through cgroups

https://roszigit.com/en/blog/kubernetes-cpu-request-limit/
1•lkanwoqwp•28m ago•0 comments

Cancellation of Windows Runtime activities is asynchronous

https://devblogs.microsoft.com/oldnewthing/20260624-00/?p=112465
1•ibobev•28m ago•0 comments

openENOC – Scalable Ethernet-Based Network-on-Chip

https://github.com/eniokaljic/openENOC/
1•ssenseiss•28m ago•1 comments

Brace Expansion Tree

https://www.johndcook.com/blog/2026/06/27/brace-expansion-tree/
1•ibobev•30m ago•1 comments

Tiny LLM Benchmark: Jetson Orin Nano Super 8GB

https://www.smolhub.com/posts/jetson-nano-super-benchmark-non-reasoning/
1•orbanlevi•36m ago•0 comments

Guards Guards – small gotcha in Elixir guard expressions

https://hauleth.dev/post/guards-guards/
1•hauleth•46m ago•0 comments

If You Can Facilitate a Retrospective, You Can Audit Your AI

https://age-of-product.com/ai-delegation-audit/
2•swolpers•49m ago•0 comments

A guide on how to run Nemotron 3 Super 120B Thinking on 2 Nvidia DGX Spark

https://corti.com/serving-nemotron-super-120b-with-a-1m-token-context-on-a-2-node-dgx-spark-cluster/
2•TechPreacher•50m ago•1 comments

Grok Is More Important Than Clean Air, DOJ Says

https://www.motherjones.com/environment/2026/06/grok-doj-justice-naacp-clean-air-act-gas-turbine-...
2•virgildotcodes•52m ago•1 comments

The post that no one will read

https://twitter.com/MedMarrouchi/status/2071161041598157196
1•medmarrouchi•53m ago•0 comments

Polymarket customers lose $3M in supply-chain attack

https://www.bleepingcomputer.com/news/security/polymarket-customers-lose-3-million-in-supply-chai...
1•01-_-•1h ago•0 comments

Show HN: FOMO – See what your community pays attention to

https://usefomo.co
2•JadAmmar•1h ago•1 comments

Intel's next-gen 52-core Nova Lake CPU could pull up to 474W

https://www.tomshardware.com/pc-components/cpus/intels-next-gen-52-core-nova-lake-cpu-could-pull-...
1•01-_-•1h ago•0 comments

Memory-Hierarchy Understanding Tools

https://github.com/ob/cache
1•signa11•1h ago•0 comments

Collecting and Analysing Yandex Maps blurs

https://www.nrk.no/order-138_-russia_s-growing-defense-industry-hides-behind-yandex_s-blurs-1.179...
2•hgulldahl•1h ago•1 comments

Hermes MoA virtual models:8% higher than Opus 4.8, 11% higher than GPT 5.5

https://twitter.com/NousResearch/status/2070610321278988385
3•aurenvale•1h ago•0 comments

Get Numb Before You Get Good

https://commoncog.com/get-numb-get-good/
2•jimsojim•1h ago•0 comments

You can now run Max AI models on Apple Silicon

https://forum.modular.com/t/max-models-can-now-run-on-apple-silicon-gpus/3283
1•melodyogonna•1h ago•0 comments

Pie – PHP Installer for Extensions

https://github.com/php/pie
1•hronak•1h ago•1 comments

Wikipedia Cofounder Larry Sanger Banned from Site for 'Canvassing'

https://www.404media.co/wikipedia-cofounder-larry-sanger-banned-from-site-for-canvassaing/
1•latexr•1h ago•1 comments

2026.06.19: EuroQCI Feedback

https://blog.cr.yp.to/20260619-euroqci.html
1•commandersaki•1h ago•0 comments