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•12mo 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•12mo 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?

Show HN: I built a dev workspace with AI as backbone

https://thekit.dev/
1•RaiyanYahya•5m ago•0 comments

Deepfakes Are Coming for Your Bank Account

https://www.theatlantic.com/technology/2026/05/chatgpt-images-deepfakes-fraud/687023/
2•saikatsg•6m ago•0 comments

Automating Hermitage to see how transactions differ in MySQL and MariaDB

https://theconsensus.dev/p/2026/05/02/automating-hermitage.html
1•zdw•10m ago•0 comments

We (US Navy) are like pirates... it's a profitable business

https://www.theguardian.com/world/2026/may/02/trump-us-navy-pirates-iran-blockade
2•hedayet•10m ago•0 comments

Pentagon to pull 5k troops from Germany, alarming Republican lawmakers

https://www.washingtonpost.com/national-security/2026/05/01/us-troops-germany-trump-merz/
1•alefalfa•11m ago•0 comments

Preliminary Findings on AI Automation from Worker Evaluations

https://arxiv.org/abs/2604.01363
2•saikatsg•12m ago•0 comments

How the JVM Optimizes Generic Code – A Deep Dive

https://inside.java/2026/04/19/generics-optimization/
1•matt_d•12m ago•0 comments

The Elizabeth line is getting video wrap-around advertising screens

https://www.ianvisits.co.uk/articles/the-elizabeth-line-is-getting-massive-video-wrap-around-adve...
2•zeristor•12m ago•2 comments

Re: Slow USB storage device? (util-Linux-ng, 2010)

https://marc.info/?l=util-linux-ng&m=126351534518733&w=2
1•juliusdavies•13m ago•0 comments

Do octopus brains work like humans'–or is there another way to be smart?

https://www.nature.com/articles/d41586-026-01302-4
2•beardyw•13m ago•0 comments

Show HN: Virshle – Make ordinary virtual machines

https://virshle.crocuda.com/
1•jean_dupont•21m ago•0 comments

Why North Korea Will Never Give Up Its Nuclear Weapons

https://spectator.clingendael.org/en/publication/why-north-korea-will-never-give-its-nuclear-weapons
1•ck45•22m ago•1 comments

The Advance of Heliotherapy – Nature

https://www.nature.com/articles/109663a0?twclid=24ras4wi5qjw2lcvz2mgnnna5z
4•bilsbie•22m ago•0 comments

Emergent swarm bio structure – mark 36

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

I Do Not Recommend Bitwarden

https://xn--gckvb8fzb.com/i-do-not-recommend-bitwarden/
17•maxloh•23m ago•2 comments

English councils to trial Google AI tool to speed up planning decisions

https://www.ft.com/content/91ce4475-d325-4d65-babb-4214996bc0f6
2•mmarian•28m ago•1 comments

VS Code inserting 'Co-Authored-by Copilot' into commits regardless of usage

https://github.com/microsoft/vscode/pull/310226
3•indrora•29m ago•0 comments

Museum Speelklok

https://www.museumspeelklok.nl/en/
2•whtspc64•35m ago•0 comments

Pixel Embeddings Beat Vision Encoders for Unified Understanding and Generation

https://github.com/facebookresearch/tuna-2
2•neehao•35m ago•0 comments

Azthengar Build 2026.05.01

https://azthengar.itch.io/azthengar-build-20260501
1•RobotHouse•36m ago•0 comments

Show HN: Fabrica – A minimal terminal-based coding agent built in Rust

https://github.com/Endi1/fabrica
1•PestoDiRucola•36m ago•0 comments

Inside the Courtroom at the OpenAI Trial

https://www.nytimes.com/2026/04/30/insider/times-inside-openai-musk-trial.html
2•bookofjoe•38m ago•1 comments

When Dawkins Met Claude

https://unherd.com/2026/04/is-ai-the-next-phase-of-evolution/
3•Anon84•39m ago•0 comments

Where to buy a non-Apple, non-Google smartphone

https://www.theregister.com/2026/05/01/buy_a_foss_fondleslab/
2•u1hcw9nx•42m ago•0 comments

Meta buys robotics startup to bolster its humanoid AI ambitions

https://techcrunch.com/2026/05/01/meta-buys-robotics-startup-to-bolster-its-humanoid-ai-ambitions/
4•Brajeshwar•42m ago•0 comments

One photographer's passion project of capturing local newsrooms

https://apnews.com/article/newspapers-newsrooms-photographing-media-f0d0939e04bb66f8d340f6f43df5bf5e
1•thm•42m ago•0 comments

Anthropic potential $900B+ valuation round could happen within 2 weeks

https://techcrunch.com/2026/04/30/anthropic-potential-900b-valuation-round-could-happen-within-tw...
4•wslh•43m ago•0 comments

Ubuntu is adding Generative AI features, and other Linux distros might follow

https://www.neowin.net/news/ubuntu-is-going-all-in-on-generative-ai-and-other-linux-distros-might...
3•bundie•44m ago•0 comments

Man takes robot to airport, gets ticket for it, it gets on plane

https://twitter.com/scottbudman/status/2050321131467653197
1•fragmede•46m ago•0 comments

IPv8 will not work [video]

https://www.youtube.com/watch?v=Uyr8homutII
1•drewr•50m ago•0 comments