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?

The Mysterious XF86AudioPlay Issue

https://michael-prokop.at/blog/2026/05/20/the-mysterious-xf86audioplay-issue/
1•JNRowe•4m ago•0 comments

VPNs: The "Most Trusted" Security Tool Until Claude Roasts It in a Weekend

https://www.hacktron.ai/blog/cve-2026-0265-panos-globalprotect-cas-auth-bypass
1•jordybg•5m ago•0 comments

Show HN: Macfigure – Mac configuration in pkl. Simple alternative to Nix-Darwin

https://github.com/Quintisimo/macfigure
1•quintisimo•5m ago•0 comments

Ask HN: Transition from Engineering Manager to IC

1•lavsv•6m ago•0 comments

The Secrets Revealed in SpaceX's IPO Filing

https://www.wsj.com/business/spacex-ipo-takeaways-cea33689
1•1vuio0pswjnm7•7m ago•0 comments

SpaceX Filing Reveals $4.28B Loss, Musk's Tight Grip (3)

https://news.bloomberglaw.com/capital-markets/musks-spacex-files-publicly-for-nasdaq-ipo-under-sy...
2•1vuio0pswjnm7•9m ago•0 comments

SpaceX IPO filing lays bare losses and Musk control as it stakes future on AI

https://www.reuters.com/legal/transactional/bound-mars-elon-musks-spacex-unveils-filing-blockbust...
2•1vuio0pswjnm7•10m ago•0 comments

Reconnecting. – – 5/5 why don't they fix codex

1•apoorvdarshan•12m ago•0 comments

Why is writing good test cases still painfully manual in 2026?

https://calendly.com/qualityfolio2026/30min
1•Daniel_Carter•12m ago•0 comments

Lazydiff: Terminal PR Review with AST-Aware Semantic Diff Rendering

https://github.com/Ataraxy-Labs/lazydiff
1•rohanucla•16m ago•0 comments

Is Python Becoming Pinyin?

https://lernerpython.com/2026/05/19/is-python-becoming-pinyin/
1•reuven•25m ago•0 comments

Rewrite System Showdown: Stochastic Search vs. EqSat

https://arxiv.org/abs/2605.19005
1•pcfwik•29m ago•0 comments

Scheme Interpreter

https://cs61a.org/proj/scheme/
1•HiPHInch•32m ago•0 comments

Understanding KV Cache: The Hidden Memory Cost of Serving LLMs

https://melchi.me/posts/kv-cache/
1•colescodes•34m ago•0 comments

Opn-Chat

https://opn-chat-v1-freebuff.vercel.app
1•fcapuz•35m ago•0 comments

Workers in India are training robots that may replace them

https://indianexpress.com/article/business/workers-india-training-robots-replace-factory-10698712/
3•methuselah_in•36m ago•0 comments

Why does the arrow (->) operator in C exist?

https://stackoverflow.com/questions/13366083/why-does-the-arrow-operator-in-c-exist
3•gnabgib•40m ago•0 comments

Trump admin didn't want Ebola-exposed Americans, sent them to Berlin, Prague

https://arstechnica.com/health/2026/05/trump-admin-didnt-want-ebola-exposed-americans-sent-them-t...
5•donutshop•43m ago•0 comments

Housekeeping Wages to Top $110K Year in New York City by Early 2030s

https://loyaltylobby.com/2026/05/20/housekeeping-wages-to-top-110k-year-in-new-york-city-by-early...
1•lxm•46m ago•0 comments

Amazon E-Bikes Take Root in Manhattan and Brooklyn

https://www.nytimes.com/2026/05/19/business/amazon-cargo-bikes-delivery.html
1•lxm•46m ago•0 comments

Google's open source distributed agent runtime

https://github.com/google/ax
2•rnella01•49m ago•0 comments

Birth Rate Debate: 40% of Girls Will Never Be Mothers [video]

https://www.youtube.com/watch?v=8eCM3NTBeb4
2•poiuyt098•50m ago•2 comments

Why does the arrow (->) operator in C exist?

https://lobste.rs/s/garq37/why_does_arrow_operator_c_exist
2•maxloh•52m ago•1 comments

Why Fashion Needs a World Model

https://twitter.com/ArkidMitra/status/2057130009203298693
1•Arkid•54m ago•1 comments

Web5-Mesh (IAON)

https://github.com/mamanga1/Web5-Mesh/tree/main
2•mamanga•58m ago•1 comments

Show HN: SafeRun – Replay debugging and inline prevention for AI agents 3

1•Tidianez•59m ago•0 comments

25 years ago Sega figured out the internet with Phantasy Star Online

https://www.avclub.com/sega-phantasy-star-online-gaming
2•debo_•1h ago•0 comments

Show HN: Agent Chat Bridge – give AI IDE agents an async callback

https://github.com/sathvikc/agent-chat-bridge
1•sathvikchinnu•1h ago•0 comments

Xcodes: Command-line Xcode version manager

https://github.com/XcodesOrg/xcodes
1•Lwrless•1h ago•0 comments

Show HN: SnapAPI – Screenshot, metadata extraction, and PDF generation API

https://snap.michaelcli.com
1•msmolkin•1h ago•0 comments