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?

How to use Linux vsock for fast VM communication

https://popovicu.com/posts/how-to-use-linux-vsock-for-fast-vm-communication/
1•mfrw•6m ago•0 comments

Black Friday Deals for Developers and Tech Teams

https://github.com/Pimjo/black-friday-deals
1•vinishbhaskar•19m ago•1 comments

WhisperThunder – A New Fast, High-Quality Text-to-Video Model

https://www.whisperthunder.top/
2•RyanMu•20m ago•1 comments

Show HN: AI Agents for Customer Support

https://www.sparrowdesk.com/ref=hn
1•jgm22•20m ago•0 comments

Ask HN: As CTO, do you pick JavaScript/TS as the default stack?

1•sawirricardo•23m ago•1 comments

World War AI

https://www.epsilontheory.com/world-war-ai/
1•koolhead17•23m ago•0 comments

Show HN: I Am Building an Intuitive Database GUI for ClickHouse and Postgres

https://www.datacia.app
1•rwiteshbera•27m ago•0 comments

Lot Is Back

https://lot-systems.com
1•vadikmarmeladov•29m ago•0 comments

Billiard Fractals: The Infinite Patterns Hidden in a Rectangle

https://xcontcom.github.io/billiard-fractals/docs/article.html
2•grandpanda•30m ago•2 comments

TigerStyle: Coding philosophy focused on safety, performance, dev experience

https://tigerstyle.dev/
1•nateb2022•33m ago•0 comments

The weird technical limitations of the Nintendo 64 [video]

https://www.youtube.com/watch?v=DCt7UZkS-w4
1•azhenley•34m ago•0 comments

Beads – A memory upgrade for your coding agent

https://github.com/steveyegge/beads
2•latchkey•35m ago•0 comments

Modern Mermaid, a decent flowchart generator for writing documentation

https://modern-mermaid.live/
2•fragmede•42m ago•0 comments

Andrew Kelley removed his "monkeys" and "losers" references

https://web.archive.org/web/20251127021007/https://ziglang.org/news/migrating-from-github-to-code...
8•nikolay•42m ago•2 comments

I solo-developed a Call of Duty event clipper using Python and AI

1•niceshot-ai•56m ago•0 comments

Migrating to Positron, a next-generation data science IDE for Python and R

https://posit.co/blog/positron-migration-guides
4•ionychal•1h ago•1 comments

Show HN: AffiliateGrowthVault: Discover 2000 Affiliate Program Growth Strategies

https://affiliategrowthvault.com/
1•tejas3732•1h ago•0 comments

Can I Port Sonic to the Amiga from the Sega Megadrive?

https://youtu.be/Xb94oUw7_K4
1•bane•1h ago•0 comments

James Webb Space Telescope reveals new view of dying star 'Red Spider Nebula'

https://indianexpress.com/article/technology/science/james-webb-space-telescope-reveals-new-view-...
1•ashishgupta2209•1h ago•0 comments

Pretrain a Bert Model from Scratch

https://machinelearningmastery.com/pretrain-a-bert-model-from-scratch/
3•tzury•1h ago•2 comments

The SWE-Bench Illusion

https://www.microsoft.com/en-us/research/publication/the-swe-bench-illusion-when-state-of-the-art...
4•louiereederson•1h ago•2 comments

GitLab scan finds 17,000 secrets in public repos, leading to $9000+ in bounties

https://trufflesecurity.com/blog/scanning-5-6-million-public-gitlab-repositories-for-secrets
3•adrianwaj•1h ago•0 comments

Japan town retracts bear sighting warning sparked by AI image

https://www.japantimes.co.jp/news/2025/11/27/japan/society/japan-town-retracts-ai-bear-image/
2•geox•1h ago•0 comments

A world map where anyone can plant a digital bonsai

https://www.zen.com.ar/bonsais/
2•elandros•1h ago•2 comments

Pocketbase – open-source realtime back end in 1 file

https://pocketbase.io/
20•modinfo•1h ago•2 comments

Vintage Thanksgiving: Photos Showing How Families Gathered in 1950s and 1960s

https://rarehistoricalphotos.com/vintage-thanksgiving/
3•Brajeshwar•1h ago•0 comments

Show HN: AnyMusic – AI music generator (royalty‑free, songs,stems, lyrics)

https://anymusic.ai
1•lovelycold•1h ago•0 comments

China's BEV Trucks and the End of Diesel's Dominance

https://cleantechnica.com/2025/11/26/chinas-bev-trucks-and-the-end-of-diesels-dominance/
47•xbmcuser•1h ago•16 comments

Japan's human washing machines will go on sale to general public

https://soranews24.com/2025/11/28/japans-human-washing-machines-will-go-on-sale-to-general-public...
3•zdw•1h ago•3 comments

Why can't ChatGPT tell time?

https://www.theverge.com/report/829137/openai-chatgpt-time-date
1•ent101•1h ago•0 comments