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

RocketMapper Satellite Tracker

https://rocketmapper.com/satellites
1•jonbaer•10s ago•0 comments

Show HN: Got a tough conversation coming up? This AI app will help you prepare

https://toughconversations.app/
1•ddesposito•40s ago•0 comments

Claude Code gets 'safer' auto mode

https://www.theverge.com/ai-artificial-intelligence/900201/anthropic-claude-code-auto-mode
1•datadrivenangel•59s ago•0 comments

Apple randomly closes bug reports unless you "verify" the bug remains unfixed

https://lapcatsoftware.com/articles/2026/3/11.html
1•zdw•1m ago•0 comments

China still on track to supplant US as No 1 economy in 10 years

https://www.scmp.com/economy/china-economy/article/3347863/china-still-track-supplant-us-worlds-n...
1•mikhael•1m ago•0 comments

IXI's autofocusing lenses are almost ready to replace multifocal glasses

https://www.engadget.com/wearables/ixis-autofocusing-lenses-multifocal-glasses-ces-2026-212608427...
1•andsoitis•2m ago•0 comments

Automatically generate all 3D print files for organizing a drawer

https://geniecrate.com/
1•woktalk•3m ago•0 comments

Shader Development Studio

https://www.shader.se
1•memalign•5m ago•0 comments

Project N.O.M.A.D. Offline Survival Computer Bundles AI, Wikipedia, Khan Academy

https://github.com/Crosstalk-Solutions/project-nomad
2•tagami•5m ago•1 comments

Microsoft Rust Training Books

https://github.com/microsoft/RustTraining
1•serial_dev•6m ago•0 comments

High-performance denoising library for ray tracing

https://www.openimagedenoise.org/
1•teleforce•6m ago•0 comments

Updates to GitHub Copilot interaction data usage policy

https://github.blog/news-insights/company-news/updates-to-github-copilot-interaction-data-usage-p...
2•prefork•6m ago•0 comments

Ball Pit

https://codepen.io/mrdoob_/full/NPRwLZd
3•memalign•7m ago•0 comments

Show HN: I built a voice AI that responds like a real woman

1•shalomer•7m ago•0 comments

Model collapse is already happening

https://cacm.acm.org/blogcacm/model-collapse-is-already-happening-we-just-pretend-it-isnt/
9•zdw•8m ago•4 comments

The OpenAI Safety Bug Bounty Program

https://openai.com/index/safety-bug-bounty/
1•Agreed3750•10m ago•0 comments

Google's TurboQuant offers LLMs up to 6x compression

https://arstechnica.com/ai/2026/03/google-says-new-turboquant-compression-can-lower-ai-memory-usa...
2•cwt137•10m ago•0 comments

Pulling the Lever

https://zaferbalkan.com/pulling-the-lever/
1•feldrim•11m ago•1 comments

Crocker's Rules

https://blainsmith.com/articles/crockers-rules/
1•speckx•11m ago•0 comments

At least 40% of Russia's oil export capacity halted, Reuters calculations show

https://www.reuters.com/business/energy/least-40-russias-oil-export-capacity-halted-reuters-calcu...
2•doener•14m ago•0 comments

Has banning phones improved performance at Dutch schools?

https://www.bbc.com/news/articles/cpqxjwvvyl4o
2•tartoran•16m ago•0 comments

JavaFX 26 Today [video]

https://www.youtube.com/watch?v=Z3eHldNlHlU
1•java-man•16m ago•0 comments

Instagram and YouTube found liable in landmark social media addiction trial

https://www.pbs.org/newshour/nation/instagram-and-youtube-found-liable-in-landmark-social-media-a...
1•bdcravens•16m ago•0 comments

The LiteLLM Supply Chain Attack and Why Your Secrets Shouldn't Survive Boot

https://blog.crawley.systems/posts/litellm-supply-chain-attack
2•kcmastrpc•17m ago•0 comments

Playra by a 16 Year Old

1•Allenboyy•17m ago•0 comments

Finland moves to allow hosting of nuclear weapons

https://responsiblestatecraft.org/finland-nuclear-weapons/
1•t-3•18m ago•1 comments

Elon Musk Announces ClipX

https://lzon.ca/posts/series/duck/clipx/
1•jpmitchell•18m ago•0 comments

Dialkit

https://joshpuckett.me/dialkit
1•Areibman•22m ago•0 comments

Turn messy Amazon invoice PDFs into usable Excel data

https://amazoninvoicetoexcel.com/
1•bigCourage•22m ago•0 comments

Claude picks the first idea that works. Make it pick the best one

https://photostructure.com/coding/claude-code-replan/
2•speckx•23m ago•0 comments