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•11mo 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•11mo 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?

Biology is a Burrito: A text- and visual-based journey through a living cell

https://burrito.bio/essays/biology-is-a-burrito
1•the-mitr•2m ago•0 comments

Can LLMs create lasting flashcards from readers' highlights?

https://memory-machines.com/report/
1•jryio•2m ago•0 comments

The Arpanet Reconstruction Project

https://obsolescence.dev/arpanet_home.html
1•ecliptik•3m ago•0 comments

Where the Goblins Came From

https://openai.com/index/where-the-goblins-came-from/
4•ilreb•5m ago•0 comments

Demonstrating the idea of gamma camera imaging [video]

https://www.youtube.com/watch?v=PyGlHtvihXA
1•num42•7m ago•0 comments

Ernie 5.1 Preview

https://ernie.baidu.com/
1•qainsights•8m ago•0 comments

Strait of Hormuz Daily Intelligence

https://insights.windward.ai/
2•jnord•10m ago•0 comments

LFM2-24B-A2B: Scaling Up the LFM2 Architecture

https://www.liquid.ai/blog/lfm2-24b-a2b
1•nateb2022•11m ago•0 comments

Finetuning Activates Verbatim Recall of Copyrighted Books in LLMs

https://github.com/cauchy221/Alignment-Whack-a-Mole-Code
1•reconnecting•14m ago•0 comments

Functional Programmers need to take a look at Zig

https://pure-systems.org/posts/2026-04-29-functional-programmers-need-to-take-a-look-at-zig.html
2•xngbuilds•15m ago•0 comments

Transponders to be installed on New York area airport ground vehicles

https://apnews.com/article/laguardia-plane-crash-air-canada-transponders-18578e94f2f7ec67b5ed45e9...
1•geox•16m ago•0 comments

GitHub Is Sinking

https://dbushell.com/2026/04/29/github-is-sinking/
1•xngbuilds•18m ago•0 comments

Opus 4.7's New Tokenizer: What It Costs

https://openrouter.ai/announcements/opus-47-tokenizer-analysis
3•vinhnx•19m ago•0 comments

Scroll-Driven Animations

https://www.joshwcomeau.com/animation/scroll-driven-animations/
1•vinhnx•19m ago•0 comments

AI Groupchats app just launched

https://techcrunch.com/2026/04/29/meet-shapes-the-app-bringing-humans-and-ai-into-the-same-group-...
1•nooriee•21m ago•1 comments

Show HN: Lssh – Terminal-native remote access suite for SSH and cloud targets

https://github.com/blacknon/lssh
1•blacknon•22m ago•1 comments

What is something you started and then wish you started earlier?

https://old.reddit.com/r/AskReddit/comments/1szjkl5/comment/oj2a8b7/
1•eeko_systems•24m ago•0 comments

I Choose Email over Messaging

https://www.spinellis.gr/blog/20250926/
1•fagnerbrack•26m ago•0 comments

The TypeScript AI Framework – Mastra

https://mastra.ai/
1•fagnerbrack•26m ago•0 comments

Build programmatic agents with the Cursor SDK

https://cursor.com/blog/typescript-sdk
1•2arrs2ells•27m ago•0 comments

The AI Compute Extensions (ACE) for x86 [pdf]

https://x86ecosystem.org/wp-content/uploads/2026/03/ACE-Whitepaper-v1.pdf
2•matt_d•33m ago•0 comments

Microsoft open sources DOS 1.00 on 45th anniversary

https://opensource.microsoft.com/blog/2026/04/28/continuing-the-story-of-early-dos-development/
7•hackthemack•33m ago•1 comments

Beyond Conventional Drones: A Review of Unconventional Rotary-Wing UAV Design

https://www.mdpi.com/2504-446X/9/5/323
1•CarbonBasedUnit•33m ago•0 comments

Warm Burnout: editor and terminal color scheme

https://warmburnout.com/
3•cdrnsf•35m ago•0 comments

IBM Releases Granite 4.1 family of models

https://research.ibm.com/blog/granite-4-1-ai-foundation-models
2•ibgeek•36m ago•0 comments

Agents can now create Cloudflare accounts, buy domains, and deploy

https://blog.cloudflare.com/agents-stripe-projects/
1•tech234a•40m ago•0 comments

QuaryLite

https://github.com/sardortpd-eng/QuaryLite
1•sardor-sam•44m ago•0 comments

Orangutan Filmed Using a Human-Made Bridge

https://www.sciencealert.com/world-first-orangutan-filmed-using-a-human-made-bridge
1•wslh•46m ago•0 comments

All databases will eventually be (re)written in Rust

https://kerkour.com/rust-databases
1•lwhsiao•49m ago•0 comments

Show HN: I built a zero-tracking news hub to escape doomscrolling at (AGE 17y)

1•blazeeofsun•50m ago•0 comments