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?

China claims domestically-designed 14nm logic chips can rival 4nm Nvidia silicon

https://www.tomshardware.com/tech-industry/semiconductors/china-claims-14nm-ai-chip-can-rival-nvi...
1•themgt•28s ago•0 comments

My data should not be your cookie jar

https://blog.avas.space/cookie-jar/
1•curioussquirrel•3m ago•0 comments

Show HN: Lifetime Black Friday Deals (Mega List)

https://www.blackfridaydeals.directory
1•bfdd•3m ago•0 comments

The Claims of Close Reading

https://www.bostonreview.net/articles/the-claims-of-close-reading/
1•jger15•5m ago•0 comments

Chess960v2.com:All 960 Fischer openings analyzed, full restart planned after fix

https://chess960v2.com/en
2•lavren1974•8m ago•1 comments

Ainfographic – Turn blog posts into infographics with AI

https://ainfographic.com/
1•Tomolo•9m ago•1 comments

Stop Clicking Around: Faster Ways to Put Your Mac to Sleep

https://medium.com/@aspiringwriter001/stop-clicking-around-faster-ways-to-put-your-mac-to-sleep-6...
1•beholdsurprise•9m ago•0 comments

Durrrr ChatGPT [video]

https://www.newgrounds.com/portal/view/1006996
1•etrvic•12m ago•0 comments

One Thousand Layer Networks for Self-Supervised RL

https://arxiv.org/abs/2503.14858
1•johnsutor•12m ago•0 comments

Show HN: AI System Generating Minecraft Mods (97% Working)

https://www.player.games/en-US/create-minecraft-mods-ai
3•madebywelch•14m ago•2 comments

The Impossible Prompt

https://teodordyakov.github.io/the-impossible-promt/
2•gmays•16m ago•0 comments

Context Plumbing

https://interconnected.org/home/2025/11/28/plumbing
1•todsacerdoti•18m ago•0 comments

Shiitake Mushrooms Can Remember Electrical States

https://spectrum.ieee.org/memristor-materials
2•Brajeshwar•22m ago•1 comments

Platform-independent experiments on social media

https://www.science.org/doi/10.1126/science.aec7388
1•Brajeshwar•22m ago•1 comments

ADHD Diagnoses Are Growing

https://www.nature.com/articles/d41586-025-03855-2
2•Brajeshwar•22m ago•1 comments

Long-term pattern shifts in Atlantic high-pressure sys drives Caribbean rainfall

https://phys.org/news/2025-11-caribbean-rainfall-driven-shifting-term.html
2•bikenaga•25m ago•0 comments

Agents need good developer experience too

https://modal.com/blog/agents-devex
1•birdculture•28m ago•0 comments

The AWS Infrastructure as Code MCP Server: AI-Powered CDK

https://aws.amazon.com/blogs/devops/introducing-the-aws-infrastructure-as-code-mcp-server-ai-powe...
1•xfr•33m ago•0 comments

Guide to making a CHIP-8 emulator

https://tobiasvl.github.io/blog/write-a-chip-8-emulator/
2•AlexeyBrin•37m ago•0 comments

The UK Has It Wrong on Digital ID. Here's Why

https://www.eff.org/deeplinks/2025/11/uk-has-it-wrong-digital-id-heres-why
5•hn_acker•37m ago•1 comments

Be Slightly Monstrous

https://contraptions.venkateshrao.com/p/be-slightly-monstrous
1•jger15•37m ago•0 comments

AWS Amplify Is a Joke

2•2code•38m ago•0 comments

AI Tops Christian Artist Charts on iTunes

https://thehill.com/policy/technology/5620871-ai-christian-singer-tops-charts-stirs-debate/
3•geox•38m ago•2 comments

Reanimation of pseudoscience in machine learning and its ethical repercussions

https://www.cell.com/patterns/fulltext/S2666-3899(24)00160-0
4•INGELRII•40m ago•0 comments

Could Symbolic AI Unlock Human-Like Intelligence?

https://www.nature.com/articles/d41586-025-03856-1
4•beardyw•42m ago•0 comments

Why aren't there any "YouTube competitors?"

https://justinkuiper.substack.com/p/why-arent-there-any-youtube-competitors
2•surprisetalk•42m ago•4 comments

Oedipus is about the act of figuring out what Oedipus is about

https://interconnected.org/home/2025/11/07/oedipus
2•surprisetalk•42m ago•0 comments

Testing Shows Automotive Glassbreakers Can't Break Modern Automotive Glass

https://www.core77.com/posts/138925/Testing-Shows-Automotive-Glassbreakers-Cant-Break-Modern-Auto...
5•surprisetalk•42m ago•0 comments

My Ethical Conundrum Around Writing About Meditation

https://psychotechnology.substack.com/p/my-ethical-conundrum-around-writing
1•surprisetalk•42m ago•0 comments

Show HN:Send Full Folders Without Zip

https://openbeam.cloud/folder-upload
2•gray_wolf_99•43m ago•0 comments