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•8mo 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•8mo 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 Essential Arrogance of Children

https://elliotmorris.net/the-essential-arrogance-of-children
1•demorro•2m ago•0 comments

Longest Joke in the World

https://www.longestjokeintheworld.com/
1•liminal-dev•4m ago•0 comments

MCP Tool Schema Bloat: The Hidden Token Tax (and How to Fix It)

https://www.layered.dev/mcp-tool-schema-bloat-the-hidden-token-tax-and-how-to-fix-it
1•mooreds•5m ago•0 comments

Nintendo Virtual Boy at 1M Frames per second [video]

https://www.youtube.com/watch?v=jW7M8H99x7Y
2•ortusdux•6m ago•0 comments

Show HN: You're reading this, which means the story has begun

https://github.com/skorotkiewicz/mrm
2•modinfo•6m ago•0 comments

The War Between alt.tasteless and rec.pets.cats (1994)

https://www.wired.com/1994/05/alt-tasteless/
2•mooreds•6m ago•0 comments

OpenAI Asking Contractors to Upload Work from Past Jobs to Evaluate AI Agents

https://www.wired.com/story/openai-contractor-upload-real-work-documents-ai-agents/
2•rbanffy•7m ago•1 comments

Transcript: How I got started with DBtune & why we chose Postgres w/Luigi Nardi

https://talkingpostgres.com/episodes/how-i-got-started-with-dbtune-why-we-chose-postgres-with-lui...
2•clairegiordano•8m ago•0 comments

Gladys West's vital contributions to GPS technology

https://en.wikipedia.org/wiki/Gladys_West
2•hackernj•8m ago•0 comments

OpenAI to test ads in ChatGPT in bid to boost revenue

https://www.reuters.com/business/openai-begin-testing-ads-chatgpts-free-go-tiers-2026-01-16/
2•jlarocco•8m ago•0 comments

Jonathan Haidt Brings New Evidence to the Battle Against Social Media

https://www.nytimes.com/2026/01/16/podcasts/jonathan-haidt-new-evidence.html
3•ripe•8m ago•0 comments

Show HN: Claude Code Plan Mode Plugin

https://www.youtube.com/watch?v=a_AT7cEN_9I
3•ramoz•9m ago•0 comments

Free IP blacklist checker (DNSBL/RBL) with CIDR and /24 support

https://networkwhois.com/ip-blacklist-checker
2•sysnestor•10m ago•1 comments

A controller-enforced alternative to agent-driven 'Ralph' loops

https://github.com/JH427/ralph-codex
2•hellointernet•11m ago•1 comments

SkipCV

https://www.skipcv.com/
2•aitkja•11m ago•1 comments

Open Source Alternatives to Cloudflare Products

https://oneuptime.com/blog/post/2026-01-16-decentralize-the-internet-cloudflare-alternatives/view
2•ndhandala•12m ago•0 comments

Medium Was Built for an Internet That No Longer Exists

https://medium.com/@gp2030/medium-was-built-for-an-internet-that-no-longer-exists-ae06bf7ef461
1•light_triad•12m ago•0 comments

MTV Rewind – Want Your MTV? A Rogue Site Is Bringing Back the Videos

https://www.nytimes.com/2026/01/14/arts/music/mtv-rewind-video-database.html
1•ChrisArchitect•12m ago•2 comments

Cloudflare Just Bought a Web Framework. Here's Why That Changes Everything

https://jpcaparas.medium.com/cloudflare-just-bought-a-web-framework-heres-why-that-changes-everyt...
1•zenoware•14m ago•1 comments

IcoGenie – AI SVG Custom Icon Generator, React Ready

https://icogenie.vercel.app/en
1•albertnahas•14m ago•1 comments

Bandcamp bans AI-generated music: 'Human creativity first'

https://ra.co/news/84314
3•saucymew•15m ago•2 comments

Open-Weight Models Are Getting Serious: GLM 4.7 vs. MiniMax M2.1

https://blog.kilo.ai/p/open-weight-models-are-getting-serious
1•kristianp•15m ago•1 comments

Bare-metal i386 Gopher server for Linux

https://github.com/someodd/gasm
1•midzer•16m ago•0 comments

Interlingua

https://en.wikipedia.org/wiki/Interlingua
2•veqq•20m ago•2 comments

Universal SSL exposes domains to BGP leaks

https://community.cloudflare.com/t/universal-ssl-exposes-domains-to-bgp-leaks-re-venezuela-analys...
2•8organicbits•20m ago•0 comments

Friday Deploys: Sometimes That Puppy Needs Murdering

https://charity.wtf/2025/12/24/on-friday-deploys-sometimes-that-puppy-needs-murdering-xpost/
2•speckx•21m ago•0 comments

Show HN: Kerns – A Workspace for Deep, Ongoing Research

https://www.kerns.ai/
1•kanodiaayush•21m ago•0 comments

Tehran Friday prayer leader calls for execution of detained protesters

https://www.iranintl.com/en/202601166946
1•ukblewis•25m ago•2 comments

Slop Is Everywhere for Those with Eyes to See

https://www.fromjason.xyz/p/notebook/slop-is-everywhere-for-those-with-eyes-to-see/
8•speckx•26m ago•2 comments

Life in Kyiv right now (non-media view, I live there)

https://www.redshift-observatory.ch/slblog/2026-01.html#life-in-kyiv
2•Max-Ganz-II•26m ago•1 comments