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

Aperio Lang

https://aperio-lang.github.io/aperio/introduction.html
1•mmcclure•50s ago•0 comments

Anthropic Raising $30B More as AI Labs Absorb Majority of VC Funding

https://www.wsj.com/tech/ai/anthropic-raising-30-billion-more-as-ai-labs-absorb-majority-of-vc-fu...
1•JumpCrisscross•2m ago•0 comments

Hitchhiker's Guide to Logical Verification (2023 Edition)

https://lean-forward.github.io/hitchhikers-guide/2023/
1•tosh•2m ago•0 comments

Predictions for the Next 30 Years of Cybersecurity (2018)

https://utkusen.substack.com/p/predictions-for-the-next-30-years
1•utku1337•3m ago•0 comments

Nordstjernen Web Browser

https://github.com/nordstjernen-web/nordstjernen
2•roschdal•3m ago•0 comments

Free Energy from the Vacuum? NASA Pioneer Unveils Battery-Free CPU

https://thedebrief.org/free-energy-from-the-vacuum-warp-drive-pioneer-unveils-battery-free-micros...
1•alhazrod•4m ago•0 comments

Finland: Failures to deliver public warnings (Finnish)

https://yle.fi/a/74-20226095
1•fastforwardius•5m ago•1 comments

Ten Red Flags to Investigate When Evaluating AI Pentesting Vendors

https://xbow.com/blog/ai-pentest-vendors-red-flags
1•wslh•6m ago•0 comments

Infineon Unveils Auto Industry's First RISC-V MCU: Linux Era for Semiconductors

https://en.infomaxai.com/news/articleView.html?idxno=116421
1•fork-bomber•7m ago•0 comments

Traitorous Eight

https://en.wikipedia.org/wiki/Traitorous_eight
1•o4c•7m ago•0 comments

Use Your ChatGPT Subscription in Zed

https://zed.dev/blog/chatgpt-subscription-in-zed
1•meetpateltech•8m ago•0 comments

Teens Helped Bring Malls Back to Life. Now They're Getting Banned.

https://www.wsj.com/business/retail/teens-helped-bring-malls-back-to-life-now-theyre-getting-bann...
1•bookofjoe•9m ago•1 comments

Best Business Ideas in Tamil Nadu – SMFG India Credit

https://www.smfgindiacredit.com/knowledge-center/business-ideas-in-tamil-nadu.aspx
1•saumyaraut11•9m ago•0 comments

Show HN: Sx – an open-source package manager for AI skills, MCPs, and commands

https://github.com/sleuth-io/sx
2•detkin•10m ago•0 comments

Ask HN: What happened to the movie "Pirates of the Silicon Valley"

2•acossta•10m ago•0 comments

The Download: China's AI drama factory and the WHO's missing health targets

https://www.technologyreview.com/2026/05/15/1137341/the-download-china-short-drama-ai-who-health-...
1•joozio•11m ago•0 comments

Ledger: Cost MenuBar for Claude Code

https://github.com/delta-hq/cc-ledger
1•tsv650•12m ago•1 comments

Berget Code – Agentic coding on European infrastructure

https://berget.ai/code
1•adunk•12m ago•0 comments

If a machine can think, why can it not also feel?

1•MCIAIR•15m ago•2 comments

We don't know why Malawi is poor

https://newsletter.deenamousa.com/p/we-dont-know-why-malawi-is-poor
3•alphabetatango•16m ago•0 comments

Bipedalism and brain expansion explain human handedness

https://www.ox.ac.uk/news/2026-05-15-why-is-almost-everyone-right-handed-the-answer-may-lie-in-ho...
2•geox•17m ago•0 comments

Blocking DDoS from scraper bots the easy way via HTTP-401 Basic Auth

https://blog.fraggod.net/2026/05/15/blocking-ddos-from-scraper-bots-the-easy-way-via-http-401-bas...
2•speckx•18m ago•1 comments

Toward Zero-Copy OCI Layers

https://amlalabs.com/blog/toward-zero-copy-oci-layers/
1•xfr•18m ago•0 comments

The Feed Is Fake

https://www.vulture.com/article/social-media-feeds-chaotic-good-projects-clipping.html
1•_tk_•21m ago•0 comments

Show HN: We made a back end agnostic SDK for Agent Memory

https://github.com/atomicstrata/atomicmemory-sdk
1•ethanjoffe•21m ago•2 comments

Bun Rust rewrite: "codebase fails basic miri checks, allows for UB in safe rust"

https://github.com/oven-sh/bun/issues/30719
3•ndiddy•22m ago•0 comments

Eric Jang – Building AlphaGo from Scratch

https://www.dwarkesh.com/p/eric-jang
1•crescit_eundo•22m ago•0 comments

ChatGPT now supports Plaid connector

https://plaid.com/blog/chatgpt-personal-finance-plaid/
1•Plasmoid•22m ago•0 comments

Google updates its spam rules to include attempts to 'manipulate' AI

https://www.theverge.com/tech/931416/google-ai-search-spam-policy
2•droidjj•22m ago•1 comments

Phantom tokens: JWTs and sessions combined

https://zoriya.dev/blogs/phantom-token/
1•bo0tzz•25m ago•0 comments