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?

Against Taste

https://minutes.substack.com/p/against-taste
2•el_benhameen•2m ago•0 comments

Parallel Intelligence and Cognitive Warfare

https://jackson-t.com/parallel-intelligence-and-cognitive-warfare/
2•jthuraisamy•3m ago•0 comments

EMILIAProtocol-an open standard for human sign-off on irreversible agent actions

https://www.emiliaprotocol.ai/spec
3•EmiliaStar•5m ago•0 comments

Does the Web Use DNSSEC and Email Authentication? Scanning TopM Domains

https://www.pwndefend.com/2026/06/06/email-and-domain-security/
2•882542F3884314B•16m ago•0 comments

JavaNext Language Features

https://www.youtube.com/watch?v=fFocVFEe2TI
2•birdculture•19m ago•0 comments

Opus 4.8 Part 2: Model Welfare

https://thezvi.wordpress.com/2026/06/01/opus-4-8-part-2-model-welfare/
1•gmays•20m ago•0 comments

Show HN: Dense NYT style crossword puzzle generation with Rust and Claude

https://github.com/ekorbia/xword-pipeline
2•ekorbia•21m ago•0 comments

Self-Healing Materials: Mechanisms, Properties, and Applications

https://www.mdpi.com/2227-9717/14/9/1436
2•PaulHoule•22m ago•0 comments

Ask HN: What Happened to Hide?

2•what•24m ago•1 comments

Congress wants to tie the United States to Israel with this new legislation

https://www.theguardian.com/commentisfree/2026/jun/05/congress-us-israel-legislation
5•kldavis4•25m ago•0 comments

lab leak straight out of 2080 - time travel in html 5

https://rogmash.neocities.org/torusfield
1•rogmash•25m ago•1 comments

Show HN: Synstax – Smart Supplement Scheduling for iPhone

https://synstax.uppervoid.app/
1•reloading2008•26m ago•0 comments

The sneaky way companies get new chemicals into our food

https://www.npr.org/2026/05/29/nx-s1-5836552/fda-gras-food-chemicals-additives-rfk
3•nkzednan•28m ago•1 comments

BetterSSC is a Discord-style client for Substack Chat

https://github.com/inder/betterssc
1•inderrr•29m ago•1 comments

The Smallest Brain You Can Build: A Perceptron in Python

https://ranpara.net/posts/perceptron-explained-from-scratch/
9•DevarshRanpara•29m ago•1 comments

Eighteen

https://meyerweb.com/eric/thoughts/2026/06/07/eighteen/
2•darekkay•33m ago•0 comments

A Matter Wi-Fi Light Bulb in Rust on the Raspberry Pi Pico 2 W

https://github.com/melastmohican/rust-rpico2-embassy-examples
2•melastmohican•40m ago•0 comments

Guardrails around powerful AI models may be too late

https://www.politico.com/news/2026/06/07/frontier-ai-cybersecurity-china-race-00952786
2•jonbaer•45m ago•0 comments

Brain Appropriation

https://brainappropriation.org/
2•jonbaer•46m ago•0 comments

The AI Coding Bill Is a Headcount Problem in Disguise

https://abhishek-shankar.com/posts/ai-coding-bill-headcount-problem
2•catstyler•52m ago•0 comments

The Tao of Fish Swimming ▸ KITP Chalk Talk by Jimmy Liao [video]

https://www.youtube.com/watch?v=gZyMhlYmmVQ
1•marysminefnuf•54m ago•0 comments

AI Code Stitcher

https://github.com/ue-patcher/code_stitcher/releases
1•code_stitcher•57m ago•0 comments

How the "Perfectionism Pandemic" Is Crushing Young People

https://nautil.us/how-the-perfectionism-pandemic-is-crushing-young-people-1281569
3•ferryth•58m ago•0 comments

I built an AI agent that monitors job boards daily and emails you scored matches

https://www.matchmind.site
1•sinophine•59m ago•0 comments

Mysterious Next-Gen Aircraft Allegedly Spotted Near Area 51

https://theaviationist.com/2026/06/04/mysterious-next-gen-aircraft-allegedly-spotted-near-area-51/
5•billybuckwheat•1h ago•0 comments

Show HN: An mkv player that uses WASM to render you videos

https://parallax.kinosoft.moe/
1•kafkaesqueKino•1h ago•0 comments

GoodQ4All – A Local-First Multimodal Memory and Intelligence System

https://github.com/GoodQ02/goodq4all
1•joesdomingo•1h ago•0 comments

For the Nation's Birthday, Making It Harder to Become an American

https://www.newyorker.com/magazine/2026/06/15/for-the-nations-birthday-making-it-harder-to-become...
2•petethomas•1h ago•0 comments

Engineered biological neural networks as basic logic operators

https://www.biorxiv.org/content/10.1101/2024.12.23.630065v2
2•jonnonz•1h ago•0 comments

Pugilistic Florida billionaire plots law firm stake sale to private equity

https://www.ft.com/content/ac309e7b-b5eb-43d4-a668-d9090b2bceaa
2•petethomas•1h ago•0 comments