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?

The Authoritarian Stack

https://authoritarian-stack.info/
1•prakashqwerty•30s ago•0 comments

A Typography Geek Pointed Out Something About the Space Shuttle Discovery

https://www.theautopian.com/a-typography-geek-pointed-out-something-about-the-space-shuttle-disco...
1•frizlab•34s ago•0 comments

MacoraOne – A C bytecode VM, language runtimes, and developer tools

https://github.com/MacoraOne/MacoraOne
1•macoraone•1m ago•0 comments

Hackers Swipe Millions from Polymarket Users in Latest Security Breach

https://www.wsj.com/business/polymarket-pauses-trading-after-some-users-report-funds-drained-b014...
1•brunojppb•4m ago•0 comments

Fiwu: Protect yourself from open source softwares and web applications

https://github.com/Smile-SA/fiwu
1•saifalterway•5m ago•0 comments

Free Tools for You

https://gccinvoice.com
1•yourmahbub•6m ago•0 comments

Dockworkers at more than 100 ports worldwide strike against arms shipments

https://www.reuters.com/business/world-at-work/dockworkers-more-than-100-ports-strike-against-arm...
2•geox•8m ago•0 comments

HN should have a downvote justification section

3•potato-peeler•10m ago•0 comments

India Saved Its Tigers

https://altermag.com/articles/how-india-actually-saved-its-tigers
2•trojanalert•11m ago•0 comments

For Love (Of Typography)

https://unsung.aresluna.org/for-love-of-typography/
1•frizlab•13m ago•2 comments

I refuse to pay for business email on every side project

https://github.com/sums001/OpenInbox
1•sumitgautam0101•16m ago•0 comments

Moonshot AI asking influencers not to disclose posts as paid when promoting Kimi

https://twitter.com/elshayib_/status/2113710752741892476
1•JumpCrisscross•18m ago•0 comments

Anthropic hacked to deliver remote access trojan to Claude developer laptops

https://doublepulsar.com/anthropic-hacked-to-deliver-remote-access-trojan-to-claude-developer-lap...
8•fk33•18m ago•2 comments

Some Polymarket user funds stolen by hackers

https://www.cnbc.com/2026/10/29/polymarket-reports-outage-on-international-exchange-halts-trading...
1•debo_•21m ago•0 comments

Stripe Made Agentic Payments Possible. Why Your Server Still Blocks the Agents

https://thebossmagazine.com/post/agentic-payments-ai-agents-retail-blocking/
1•Aninay•21m ago•0 comments

Lecture on exponential time hypothesis by Ryan O'Donnell

https://www.youtube.com/watch?v=_HlQGMcQWhA
1•rnbnnnn•22m ago•0 comments

Strategies Senior AI Developers Use to Deliver High-Quality Code in 2026

https://dailybusinessgroup.co.uk/2026/10/9-strategies-senior-ai-developers-use-to-deliver-high-qu...
1•Aninay•22m ago•0 comments

Show HN: Zwitch macOS App Switcher (free)

https://apps.apple.com/app/id6801471231
1•frnk-km•22m ago•0 comments

Learning with Errors

https://en.wikipedia.org/wiki/Learning_with_errors
1•jonbaer•28m ago•0 comments

Ask HN: What inference engine and KV offload engine do you use and why?

1•malikoyv•28m ago•0 comments

OpenAI doubles ChatGPT Pro usage limits after backlash over planned 50% cut

https://www.bleepingcomputer.com/news/artificial-intelligence/openai-doubles-chatgpt-pro-usage-li...
2•entryleveljobsc•30m ago•0 comments

Where do residential proxies come from Reddit AMA

https://www.reddit.com/r/WebScrapingInsider/comments/1xf9hdj/where_do_residential_proxies_really_...
1•joinmassive•31m ago•0 comments

How a Children’s Book Got Me Reading Again

https://minhaj.pagecord.com/the-graveyard-book
1•minhajkhan1•33m ago•0 comments

Consciousness Is Not Physical

https://lukesmith.xyz/articles/consciousness/
2•enemyz0r•33m ago•1 comments

Cohere Qwen incident URL samples

https://huggingface.co/spaces/Vil-Lakera/curl-trace-explorer
1•patresh•34m ago•0 comments

Antigenic operating system for my AI agents Claude Code, open claw, codex etc.

https://github.com/Dodaios/Dodaios
1•Dodaios•34m ago•0 comments

Show HN: LeanCIL – Prove properties of compiled .NET code in Lean 4

https://github.com/NethermindEth/LeanCIL
1•rescendent•36m ago•0 comments

Show HN: Prolog-WAF – A reverse WAF logic perimeter powered by Prolog

https://prologwaf.site/
1•lokinpendawa•37m ago•0 comments

Digital radio-based train control system

https://en.wikipedia.org/wiki/European_Train_Control_System
1•avp210•39m ago•1 comments

Invasion of the Sexy A.I. Joke Thieves

https://www.nytimes.com/2026/10/29/arts/ai-bots-jokes-theft-comedians.html
2•jakubmazanec•40m ago•2 comments