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?

Centipid ISP Billing OSS/BSS

https://centipidbilling.com
1•fabianmuema•3m ago•0 comments

Jailbreaking the Switch 2

https://pepsipu.com/blog/2026-10-switch2-jailbreak-ns2jb/
1•ledoge•5m ago•0 comments

Barclays cutting 5000 jobs in AI-led efficiency drive

https://news.sky.com/story/barclays-cutting-5-000-jobs-in-ai-led-efficiency-drive-13602151
2•cognoboffin•7m ago•0 comments

Just Dashboard open-source dashboard for managing your VPS

https://just-dashboard.com/
1•Wayy01•8m ago•0 comments

Mach9 raises $34M after pivoting to AI CAD software

https://techcrunch.com/2026/10/21/mach9-raises-34m-after-pivoting-to-ai-cad-software/
2•doppp•12m ago•0 comments

Show HN: SutraKey – A radial menu to download any media and web PDFs on macOS

https://sutrakey.aritro.cloud
1•halcyon-past•12m ago•1 comments

Scientists Accidentally Bred a Hybrid of Two Endangered Fish

https://www.sciencealert.com/scientists-create-a-strange-hybrid-between-two-very-different-kinds-...
2•thunderbong•14m ago•0 comments

Bose buys audio rival Skullcandy

https://www.engadget.com/2293698/bose-buys-audio-rival-skullcandy/
2•Markoff•15m ago•0 comments

Google's repository has crossed 1B CLs

1•oqsbo•16m ago•0 comments

CVE Record: CVE-2026-91403

https://www.cve.org/CVERecord?id=CVE-2026-91403
1•Daviey•21m ago•0 comments

Node.js: 5 vulnerabilities found, update now

https://nodejs.org/en/blog/vulnerability/october-2026-security-releases
5•danfritz•22m ago•2 comments

A million orthopteran singers from a year of continuous field recorders

https://www.biorxiv.org/content/10.64898/2026.10.18.759993v1
2•ersinesen•22m ago•0 comments

"Good" AI

https://thoughts.wyounas.com/p/what-does-good-ai-mean
2•simplegeek•25m ago•0 comments

Nonfiction Is Struggling. Publishers Are Making It Worse

https://thewalrus.ca/nonfiction-is-struggling-publishers-are-making-it-worse/
4•simplegeek•25m ago•0 comments

A Lost Schrödinger Manuscript Reveals a Surprising Twist in Quantum Physics

https://www.sciencealert.com/a-lost-schrdinger-manuscript-reveals-a-surprising-twist-in-quantum-p...
4•ibobev•26m ago•0 comments

Cable theft causes Openreach broadband outage for thousands in Thurnscoe, UK

https://www.datacenterdynamics.com/en/news/cable-theft-causes-openreach-broadband-outage-for-thou...
2•GloVin•29m ago•0 comments

Compare grid features, side by side

https://comparegrids.com/features
1•davidvela•31m ago•0 comments

A framework for evaluating agentic AI systems

https://deepsense.ai/blog/your-agent-passed-the-eval-should-you-ship-it/
2•nvmdbljstm•34m ago•0 comments

Patch the Planet – The Trail of Bits Blog

https://blog.trailofbits.com/2026/06/22/introducing-patch-the-planet/
4•janandonly•37m ago•0 comments

Terminal Setup for macOS: ZSH and Oh My Zsh

https://solomk.in/posts/terminal-configuration
2•ankitg12•38m ago•0 comments

Compaction Laundering:Provenance Destruction in Context-Compacting Coding Agents

https://arxiv.org/abs/2610.29869
2•ersinesen•39m ago•0 comments

ChatGPT Ads as over 100k advertisers have used the platform

https://openai.com/index/chatgpt-ads-expands-26-new-countries/
3•haebom•42m ago•0 comments

Show HN: A stateless MCP server over our docs – search, list_topics, get_article

https://chinaready.co/docs/api/
2•martinliucn•43m ago•0 comments

ZK-irp-firewall: Zero-knowledge invariant enforcement for AI agents

https://github.com/trenttrinder1111-byte/zk-irp-firewall
3•trenttrinder111•44m ago•0 comments

A Markdown File Should Just Open

https://joshuamorris.info/notes/2026/10/13/a-markdown-file-should-just-open/
11•TheWoollyBully•45m ago•1 comments

Halloween Gothic Reading Pathway

https://www.betterreads.dev/blog/halloween-gothic-pathway
3•zlu•49m ago•0 comments

AI Agent Observability with OpenTelemetry

https://signoz.io/blog/opentelemetry-ai-agent-observability/
8•dhruv_ahuja•50m ago•0 comments

They Want Your Blood

https://www.theverge.com/column/1015563/blood-death-clock-longevity-apps-health-tech
3•saikatsg•53m ago•0 comments

Show HN: no-fi – a linter for the ASCII wireframes agents draw

https://github.com/p-a-u-l-i-e/no-fi
1•PaulVanOijen•56m ago•0 comments

Turning IPv6 tunnels into programmable delay lines for pulsing DoS

https://blog.apnic.net/2026/10/22/turning-ipv6-tunnels-into-programmable-delay-lines-for-pulsing-...
2•frostbyte7•58m ago•0 comments