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

California introduces age verification law for OS, including Linux and SteamOS

https://www.tomshardware.com/software/operating-systems/california-introduces-age-verification-law
1•taubek•1m ago•0 comments

Fighting with Iran has spread to tankers at sea

https://www.businessinsider.com/fight-iran-spread-oil-tankers-vessels-strait-of-hormuz-2026-3
1•geox•2m ago•0 comments

Show HN: Offline dictionary with spaced repetition (Tauri, Svelte): Deft

https://deft.so/
1•L_i_m_n•2m ago•0 comments

The Rust Calling Convention We Deserve

https://mcyoung.xyz/2024/04/17/calling-convention/
1•cratermoon•3m ago•0 comments

Show HN: Call your coding agent from anywhere (Bosun)

https://github.com/virtengine/bosun/releases/tag/0.37.0
1•jaeko44•4m ago•0 comments

The Mountain, the Moon Cave and the Sad God – A Making of [video]

https://www.youtube.com/watch?v=wLTcubTNIl4
1•cyanbane•5m ago•0 comments

The Sunday Signal: Capital Doesn't Lie

https://newsletter.djr.ai/p/the-sunday-signal-capital-doesnt
1•discoinferno•5m ago•0 comments

Stop building AI for the happy path: lessons from the chaos of real-world data

https://www.metabase.com/blog/lessons-learned-building-ai-analytics-agents
1•igor_mart•7m ago•0 comments

Show HN: I built a tool that turns any API into a CLI for agents

https://instantcli.com
2•stugreen13•8m ago•2 comments

Show HN: Panel Panic a Rust/Macroquad/WASM Panel de Pon/Tetris Attack Clone

https://panel-panic.com
1•LarsDu88•10m ago•0 comments

Show HN: Free tools to understand your Claude Code usage (browser, no install)

https://yurukusa.github.io/cc-toolkit/
1•yurukusa•14m ago•0 comments

Inside the M4 Apple Neural Engine, Part 1: Reverse Engineering

https://maderix.substack.com/p/inside-the-m4-apple-neural-engine
2•zdw•17m ago•0 comments

Ukraine Became a Drone Factory and Invented the Future of War

https://www.newscientist.com/article/2514976-how-ukraine-became-a-drone-factory-and-invented-the-...
3•stevenwoo•17m ago•0 comments

ISO C++ Standards Committee Panel Discussion – CppCon 2025

https://www.youtube.com/watch?v=R2ulYtpV_rs
2•pjmlp•18m ago•0 comments

Jack Dorsey's 4k Job Cuts at Block Arouse Suspicions of AI-Washing

https://www.bloomberg.com/news/articles/2026-03-01/jack-dorsey-s-4-000-job-cuts-at-block-arouse-s...
4•pinewurst•20m ago•1 comments

Show HN: AskVerdict – Multi-agent AI debates for better decisions(~$0.08/debate)

https://www.askverdict.ai
1•thegdsks•21m ago•1 comments

Brain Tumor Survivors Are Forcing a Rethink of Cancer Care

https://www.bloomberg.com/news/articles/2026-02-27/the-science-of-cancer-care-is-being-changed-by...
4•pinewurst•21m ago•1 comments

The cloud just stopped scaling

https://ounapuu.ee/posts/2026/03/01/cloud/
1•LorenDB•22m ago•0 comments

Project Warrior: How Paramount Beat Netflix in $110B Battle for Warner

https://www.ft.com/content/e352b4b3-ecba-4bc2-984f-9e4f3ce8a366
2•ViktorRay•23m ago•2 comments

Cyber attacks launched alongside with U.S.-Israeli military attack on Iran

https://www.reuters.com/business/media-telecom/hackers-hit-iranian-apps-websites-after-us-israeli...
4•giuliomagnifico•23m ago•0 comments

Ask HN: Is demography victim of social media?

2•julienreszka•25m ago•1 comments

Show HN: Situation Tracker – real-time crisis dashboard

https://www.situationtracker.xyz/
2•jayyvk•26m ago•0 comments

6 Practices that turned AI from prototyper to workhorse (106 PRs in 14 days)

2•waleedk•26m ago•1 comments

Show HN: Custom Equation Curve Fitting

https://www.standardsapplied.com/custom-equation-curve-fitting.html
2•Standards1•27m ago•0 comments

I Built a Scheme Compiler with AI in 4 Days

https://matthewphillips.info/programming/posts/i-built-a-scheme-compiler-with-ai/
5•MatthewPhillips•30m ago•0 comments

Show HN: streamable – sync/async iterable streams for Python

https://github.com/ebonnal/streamable
3•ebonnal•31m ago•0 comments

Show HN: Epstein-Search – Local, AI-Powered Search Engine for the Epstein Files

https://github.com/simulationship/epstein-search
1•simulationship•32m ago•0 comments

Show HN: LemurCam – IP Cameras as Webcams in macOS

https://github.com/steelbrain/LemurCam
1•steelbrain•33m ago•0 comments

MCP is dead. Long live the CLI

https://ejholmes.github.io/2026/02/28/mcp-is-dead-long-live-the-cli.html
3•ejholmes•33m ago•0 comments

The Terminal Built for Multitasking

https://www.cmux.dev
1•jpalomaki•34m ago•0 comments