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

HackNews the Hypocrisy

1•hiddenarchitect•3m ago•0 comments

Do you think .md domains will become popular?

1•hiveindex•3m ago•0 comments

Hans – IP over ICMP

https://code.gerade.org/hans/
2•mmh0000•4m ago•0 comments

Running is my meditation (2024) [pdf]

https://research-repository.rmit.edu.au/articles/thesis/_Running_is_my_meditation_an_investigatio...
1•wslh•7m ago•0 comments

Elon Musk's SpaceX Officially Acquires Elon Musk's xAI

https://techcrunch.com/2026/02/02/elon-musk-spacex-acquires-xai-data-centers-space-merger/
1•rbanffy•7m ago•0 comments

The Digital Bastille: What France's War with X Tells Us About Free Speech

https://www.sebs.website/blog/the-digital-bastille
1•Incerto•7m ago•0 comments

Intel Panther Lake Shows Strong Linux CPU Performance and Power Efficiency

https://www.phoronix.com/review/intel-core-ultra-x7-358h-linux
2•rbanffy•8m ago•0 comments

Complete Guide to Claude Concepts

https://github.com/luongnv89/claude-howto/blob/main/claude_concepts_guide.md
1•rob•8m ago•0 comments

No Such Thing as Speed of Light

http://www.russbishop.net/no-such-thing-as-speed-of-light#61429
1•frizlab•8m ago•0 comments

LLM Quantization and NVFP4

http://ternarysearch.blogspot.com/2026/02/llm-quantization-and-nvfp4.html
1•paladin314159•8m ago•0 comments

Use "\A \z", not "^ $" with Python regular expressions – Seth Larson

https://sethmlarson.dev/use-backslash-A-and-z-not-%5E-and-$-with-python-regular-expressions
1•rbanffy•8m ago•0 comments

Giant 'blobs' of rock influence Earth's magnetic field

https://theconversation.com/how-giant-blobs-of-rock-have-influenced-earths-magnetic-field-for-mil...
1•samizdis•10m ago•0 comments

Was Benoit Mandelbrot a hedgehog or a fox?

https://arxiv.org/abs/2602.01122
1•bikenaga•10m ago•0 comments

Probabilities

https://arxiv.org/abs/2601.18853
1•simonpure•11m ago•0 comments

Agent Identity for Git Commits

https://justin.poehnelt.com/posts/agent-identity-git-commits/
1•justinwp•13m ago•1 comments

CL-32 latest firmware [video]

https://www.youtube.com/watch?v=UpiWlSyU1A4
1•tartoran•14m ago•0 comments

Intel will start making GPUs

https://techcrunch.com/2026/02/03/intel-will-start-making-gpus-a-market-dominated-by-nvidia/
2•geox•15m ago•0 comments

CL-32

https://cl-32.com/
1•tartoran•15m ago•0 comments

Sam Altman Hires Dylan Scandinaro as Head of Preparedness

https://twitter.com/sama/status/2018800541716107477
1•marwann•16m ago•1 comments

SpaceX Acquires xAI in $1.25T All-Stock Deal

https://www.cnbc.com/2026/02/02/elon-musk-spacex-xai-ipo.html
2•m463•16m ago•0 comments

Show HN: Security platform for vibe coded apps

https://twitter.com/ananayarora/status/2018783794166419537
1•chaitanyya•16m ago•0 comments

Package Management Made Easy

http://pixi.prefix.dev/v0.63.2/
1•lwhsiao•17m ago•0 comments

Why the World Must Measure Well-Being, Not GDP

https://worldsensorium.com/why-the-world-must-measure-well-being-not-gdp/
1•dnetesn•17m ago•0 comments

What Would Richard Feynman Make of AI Today?

https://nautil.us/what-would-richard-feynman-make-of-ai-today-1262875/
1•dnetesn•18m ago•0 comments

Mesh: A compacting memory allocator for C/C++

https://github.com/plasma-umass/Mesh
2•fanf2•19m ago•0 comments

The case for optimism in South Africa

https://www.economist.com/middle-east-and-africa/2026/01/27/the-case-for-optimism-in-south-africa
1•paulpauper•21m ago•1 comments

Effects of Acute Exercise and Meditation on Cognitive Function (2018)

https://pmc.ncbi.nlm.nih.gov/articles/PMC6025452/
2•wslh•21m ago•0 comments

Next-gen nuclear reactors safe enough to skip full environmental reviews

https://www.theregister.com/2026/02/03/nextgen_nuclear_reactors_skip_nepa_reviews/
1•Bender•23m ago•1 comments

A skill for agents to work with the JJ VCS

https://github.com/danverbraganza/jujutsu-skill
2•nvader•23m ago•0 comments

Show HN: DevSweep – A TDD-backed CLI to clean artifacts safely

https://github.com/Sstark97/dev_sweep
1•ascinfo•23m ago•0 comments