frontpage.
newsnewestaskshowjobs

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•1y 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•1y 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?

Polynomial-Time Quantum Algorithm Proposed for Lattice-Based Cryptography [pdf]

https://archive.cr.yp.to/2026-08-06/07:22:47/YsHY7T0pBzBPgb0dukGNgEWT5F24hHibVcr38xs7rhg/https/ep...
1•namjh•4m ago•0 comments

Everything is a UOp – reading the deep learning stack behind comma[dot]AI

https://ssenthilnathan3.github.io/blog/tinygrad/
1•nathaah3•8m ago•0 comments

Reddit is introducing new moderator:AI, also planning big changes for old Reddit

https://www.theverge.com/tech/975398/reddit-ai-rules-hub-moderator-old-reddit-developer-platform
1•Markoff•10m ago•0 comments

A requiem for Optane, Intel's KV cache killer that could have lowered RAM prices

https://www.theregister.com/storage/2026/07/29/a-requiem-for-optane-intels-kv-cache-killer-that-c...
1•rbanffy•12m ago•0 comments

Interactive Dynamic Video (2016)

https://www.youtube.com/watch?v=4f09VdXex3A
1•sinaatalay•12m ago•0 comments

Get Receipts for Your Predictions

https://lowtakes.com/
1•alfredmalmros•14m ago•0 comments

Self-driving taxis cleared for London streets 'later this summer'

https://www.theguardian.com/technology/2026/aug/05/self-driving-taxis-approved-london-summer-2026...
2•roryirvine•18m ago•2 comments

Jeff Dean: The 1% Rule for Building in AI

https://www.ycombinator.com/library/Vy-jeff-dean-the-1-rule-for-building-in-ai
1•immighelper•19m ago•0 comments

AI

https://logicandlore-236.pages.dev/
1•naccis•20m ago•1 comments

You can't have 24hour sunlight AND low altitude, low-latency orbits

https://mastodon.social/@sundogplanets/117043472890805956
2•SiempreViernes•20m ago•0 comments

Nobody Asked for AI

https://jacobin.com/2026/08/ai-llms-monopoly-bubble-capital
1•thunderbong•21m ago•0 comments

A Security Pro Hacked North Korean Hackers. He Found They'd Breached Hundreds

https://www.wired.com/story/a-security-pro-hacked-north-korean-hackers-he-found-theyd-breached-hu...
1•sbulaev•23m ago•0 comments

Nobody Wants to Burn Out Anymore

https://tim.kicker.dev/2026/02/21/nobody-wants-to-work-anymore/
2•Renewal8936•24m ago•0 comments

Google Captcha on Search, absurdities beyond belief

2•b112•25m ago•1 comments

FTI Studio, the native Windows desktop editor for the .fti image format

https://ftistudio.github.io/
1•fpsgp•26m ago•0 comments

Show HN: S3mini v1 – Tiny and fast S3 client, no-deps, for Node, Bun, Cloudflare

https://codeberg.org/thinking_tools/s3mini
1•Peter_J•27m ago•0 comments

Marmots facing money troubles turn to OnlyFans

https://www.bbc.com/news/articles/c5ywqp5z5yzo
2•1659447091•27m ago•0 comments

Majorities of Americans say wealth inequality is a problem

https://yougov.com/en-us/articles/53821-majorities-americans-say-wealth-inequality-is-problem-wan...
1•praptak•27m ago•1 comments

China's first sodium-ion electric dump truck enters service

https://www.electrive.com/2026/08/05/chinas-first-sodium-ion-dump-truck-enters-service/
1•abawany•31m ago•0 comments

Cuprate – an alternative and independent Monero node software written in Rust

https://github.com/Cuprate/cuprate
1•Cider9986•33m ago•0 comments

Navy Establishes Reporting Portfolio Manager for Robotic and Autonomous Systems

https://www.navy.mil/Press-Office/Press-Releases/display-pressreleases/Article/4565150/department...
1•Jimmc414•34m ago•0 comments

Ask HN: Anyone's Claude Code session finishing quickly from yesterday?

1•fuadnafiz98•36m ago•3 comments

Advanced Python Scheduler – Task Scheduling Library for Python

https://github.com/agronholm/apscheduler
1•ankitg12•39m ago•0 comments

Nix Overrides That Expire Themselves

https://jezenthomas.com/2026/07/nix-overrides-that-expire-themselves/
2•birdculture•39m ago•0 comments

Kim – Keep in Mind

https://pratikwayal01.github.io/kim/
1•ankitg12•40m ago•0 comments

Welcome to the busiest month in the domain business

https://domainnamewire.com/2026/08/04/welcome-to-the-busiest-month-in-the-domain-business/
2•taubek•45m ago•0 comments

Proven: Six Checks Against AI Slop

https://blog.bensoussan.de
1•davidbensoussan•47m ago•1 comments

What I love about Django

https://buttondown.com/blog/what-i-love-about-django
23•j4mie•56m ago•2 comments

The German Mittelstand

https://kieranvelasquez.substack.com/p/on-the-german-mittelstand
3•Michelangelo11•57m ago•0 comments

Show HN: HackerBa – Hacker News with a Baidu Tieba UI

https://github.com/sha2kyou/HackerBa
2•sha2kyou•1h ago•0 comments