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?

Show HN: Free cloud-based tool for managing AI agents across multiple hosts

https://nodecartel.com/
1•itrinity•28s ago•0 comments

Telnet Song – Guy L Steele, Jr

http://wonderingminstrels.blogspot.com/2004/01/telnet-song-guy-l-steele-jr.html
1•__patchbit__•1m ago•0 comments

Mark Warren's favorite novels about a child's immersion into wilderness

https://bookdna.com/best-books/childs-immersion-into-wilderness
1•bwb•2m ago•1 comments

Sellers circumvent Lenovo's retro handheld ban with cheap wholesale storefronts

https://www.tomshardware.com/video-games/handheld-gaming/the-usd60-retro-gaming-handheld-that-esc...
1•giuliomagnifico•3m ago•0 comments

Unlimited free AI tools and more, live demo. watch now [video]

https://www.youtube.com/shorts/8HB-VgN3uTE
1•rrrpro123•5m ago•0 comments

A Queer Taste for Macaroni (2017)

https://publicdomainreview.org/essay/a-queer-taste-for-macaroni/
1•Michelangelo11•6m ago•0 comments

Why AI isn't showing up on your bottom line

https://www.exponentialview.co/p/why-ai-isnt-showing-up-on-your-bottom-line
1•brettlangdon•6m ago•0 comments

Unity AI Suite

https://unity.com/features/ai
1•teleforce•6m ago•0 comments

Best Prepaid Phone Plans (2026): Tello, Boost, Google Fi, More

https://www.wired.com/gallery/best-prepaid-phone-plans/
1•joozio•7m ago•0 comments

Seat Allocation and Seat Bias Under the Jefferson–D'Hondt Method (2018)

https://arxiv.org/abs/1805.08291
1•wolfi1•13m ago•0 comments

Unmasking Romance Scams with Osint – Mishaal Khan [video]

https://www.youtube.com/watch?v=5dXXrUqpwec
2•Fudgel•14m ago•0 comments

Claude Agent SDK: Build Your Own AI Terminal in 10 Minutes

https://www.mager.co/blog/2026-03-14-claude-agent-sdk-tui/
2•ankitg12•16m ago•0 comments

Accountability Throughput

2•shudv•17m ago•0 comments

Show HN: A Reverse Captcha for Clankers

https://clanker-captcha.jeromem.workers.dev/
2•rydgel•19m ago•0 comments

How to Destroy a Literary Reputation in One Move

https://www.honest-broker.com/p/how-to-destroy-a-literary-reputation
2•Michelangelo11•20m ago•0 comments

Diffusion over Networks

https://camerongordon0.substack.com/p/diffusion-over-networks
2•iciac•21m ago•0 comments

My wife tried to log 1k phone-free hours but quit. So I vibe-coded an app

https://play.google.com/store/apps/details?id=com.greendot.phonebreaks&hl=en_US
2•GreenDotstudios•27m ago•0 comments

Show HN: Cordium: FOSS sandbox platform that eliminates credential injection

https://github.com/octelium/cordium
2•geoctl•27m ago•0 comments

The first support engineer agent for dev tools companies

https://reproly.com
2•Sidi-jeddou•31m ago•1 comments

The Hallmarks of Aging (2013)

https://pmc.ncbi.nlm.nih.gov/articles/PMC3836174/
2•downbad_•32m ago•0 comments

Show HN: Overslash – an auth gateway for AI Agents

https://www.overslash.com/
2•arturogoosnargh•34m ago•1 comments

Russia Revives WWI Dazzle Camouflage to Evade Ukrainian AI Drones–Does It Work?

https://united24media.com/war-in-ukraine/russia-revives-wwi-dazzle-camouflage-to-evade-ukrainian-...
1•Symbiote•35m ago•1 comments

How to Think About AI in Your Product

https://abgoyal.com/posts/how-to-think-about-ai-in-your-product/
1•ghoul2•40m ago•0 comments

Squillions – two books about money-laundering

https://www.lrb.co.uk/the-paper/v48/n09/john-lanchester/squillions
1•rwmj•41m ago•0 comments

2D Internet? So 1995. Building a '90s VRML-verse with SGI [video]

https://www.youtube.com/watch?v=9X_NKRbuPf4
3•6581•42m ago•0 comments

Show HN: Agent Deck: Native Mac app for managing AI coding agents| powered by PI

https://agentdeck.site/
2•streetcoder•45m ago•0 comments

Claude Code plugin that shows what's happening

https://github.com/jarrodwatts/claude-hud
2•ankitg12•46m ago•0 comments

Show HN: 1B rows (14B cells) in the browser with DuckDB and Glide Data Grid

https://analytics-grid.com/
1•engraver•57m ago•2 comments

My Accessibility Stack and the Future on Wayland

https://nocoffei.com/?p=451
3•birdculture•58m ago•1 comments

'Your devices could be at risk': how McAfee antivirus scams trade on fear

https://www.theguardian.com/money/2026/may/31/virus-software-scam-trade-fear-urgent-renewal
8•billybuckwheat•59m ago•0 comments