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

Myths of Fleming's Penicillin Discovery

https://press.asimov.com/articles/penicillin-myth
1•mailyk•45s ago•0 comments

Using esbuild in Eleventy

https://danburzo.ro/notes/eleventy-esbuild/
1•eustoria•1m ago•0 comments

Postmodernism for STEM Types: A Clear-Language Guide to Conflict Theory

https://qualiaadvocate.substack.com/p/postmodernism-for-stem-types-a-clear
1•QualiaAdvocate•1m ago•1 comments

OpenAI blames suicide on 'misuse' of its technology

https://www.theguardian.com/technology/2025/nov/26/chatgpt-openai-blame-technology-misuse-califor...
1•trenning•1m ago•0 comments

AI Slop Recipes Are Taking over the Internet – and Thanksgiving Dinner

https://www.bloomberg.com/news/articles/2025-11-25/ai-slop-recipes-are-taking-over-the-internet-a...
2•yurivish•3m ago•0 comments

3.3x Faster HuggingFace Tokenizers for Single Sequence

https://charlesxu.io/parallel-tokenizer/
2•charlesxu•3m ago•0 comments

MUMPS – The Curious Database Powering America's Hospitals [video]

https://www.youtube.com/watch?v=7g1K-tLEATw
2•skx001•4m ago•0 comments

Slashdot Effect

https://en.wikipedia.org/wiki/Slashdot_effect
3•firefax•5m ago•0 comments

Permissive Action Links

https://www.cs.columbia.edu/~smb/nsam-160/pal.html
1•JoachimS•5m ago•0 comments

iPhone Users Can Now AirDrop Files to Android Devices

https://www.macrumors.com/2025/11/20/iphone-android-airdrop-quickshare/
2•doener•6m ago•0 comments

Dell PERC Crossflashing

https://fohdeesha.com/docs/perc.html
2•LorenDB•7m ago•0 comments

Is AI Eating the World?

https://philippdubach.com/2025/11/23/is-ai-really-eating-the-world/
1•vinhnx•7m ago•0 comments

Canadian Court: OVHcloud from France must hand over user data

https://www.heise.de/en/news/Canadian-Court-OVHcloud-from-France-must-hand-over-user-data-1109202...
1•doener•7m ago•0 comments

The Shape of the Game We Play

https://commoncog.com/shape-of-the-game-we-play/
1•jger15•8m ago•0 comments

India approves $816M rare earth permanent magnets manufacturing program

https://www.reuters.com/world/india/india-approves-816-mln-rare-earth-permanent-magnets-manufactu...
1•alephnerd•9m ago•0 comments

SoftBank's 40% Slide from Peak Shows Worry over Giant OpenAI Bet

https://www.bloomberg.com/news/articles/2025-11-26/softbank-s-40-slide-from-peak-reflects-jitters...
3•1vuio0pswjnm7•9m ago•0 comments

Poor Man's Merge Conflict Resolver

https://olshansky.info/posts/2025-11-26-merge-conflict-resolver
1•Olshansky•9m ago•0 comments

Getting Started with Bruin

https://simpletechguides.com/guides/getting-started-with-bruin/
1•ritzaco•10m ago•0 comments

How to Use Claude Code on Mobile

https://www.skeptrune.com/posts/claude-code-on-mobile-termux-tailscale/
2•akira_067•12m ago•0 comments

Emisary: A use case for a new psychological metric

https://emisary.com/splash-plain
1•randyTriptalker•14m ago•1 comments

HybridTree: The First AGI Engine That Thinks in Korean

https://www.lesswrong.com/posts/YHNrBsH2TfgBsfaLs/hybridtree-the-first-agi-engine-that-thinks-in-...
1•Hanjuwoncarrier•14m ago•0 comments

Making a Custom CPU

https://popovicu.com/posts/making-a-custom-cpu-mrav/
2•vinhnx•16m ago•0 comments

Open Source Finance Integrations

https://integrations.getbluebook.com
2•phiand•18m ago•1 comments

Why So Much Is Riding on the Data Center Boom

https://www.bloomberg.com/news/features/2025-11-21/how-the-data-center-boom-tests-grids-water-res...
1•1vuio0pswjnm7•18m ago•1 comments

AI Models Outperform Frontier Models in Software Testing

https://www.functionize.com/blog/why-purpose-built-ai-models-outperform-frontier-models-in-testing
1•ohjeez•19m ago•0 comments

Show HN: Nobg.space – Free, private background remover now has manual editor

https://www.nobg.space/
1•vyshnavtr•21m ago•0 comments

Why Fears of a Trillion-Dollar AI Bubble Are Growing

https://www.bloomberg.com/news/articles/2025-11-24/why-ai-bubble-concerns-loom-as-openai-microsof...
2•1vuio0pswjnm7•21m ago•0 comments

Delete all contact images via AppleScript

https://tinyapps.org/blog/delete-all-contact-images.html
1•speckx•21m ago•0 comments

Show HN: Local Clipboard History – Privacy-first clipboard manager

https://anan.guru
1•alohaTool•22m ago•0 comments

Stop Hacklore (modern urban legends about digital safety)

https://www.hacklore.org/letter
1•zdw•22m ago•0 comments