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?

Forking the Web

https://dillo-browser.org/lab/web-fork/
2•wrxd•5m ago•0 comments

The Rebels Who Fought Enterprise Java – Spring: The Documentary [video]

https://www.youtube.com/watch?v=0Gb1z-2SjHY
1•arbayi•10m ago•0 comments

Show HN: Anycrap – REST API for 35k absurdist AI-generated products

https://anycrap.shop/developers
2•astrokaf•12m ago•0 comments

Architecting on Cloudflare

https://architectingoncloudflare.com/
1•Lwrless•16m ago•0 comments

Show HN: Concord – Feature rich TUI for discord

https://github.com/chojs23/concord
3•jpellamo•16m ago•1 comments

The groundbreaking AI tool helping Victorian rangers protect native species

https://www.abc.net.au/news/2026-04-27/ai-helps-parks-victoria-manage-native-species-pests-after-...
1•aeonfox•18m ago•0 comments

UniPool: A Globally Shared Expert Pool for Mixture-of-Experts

https://arxiv.org/abs/2605.06665
1•danborn26•19m ago•0 comments

A History of IDEs at Google

https://laurent.le-brun.eu/blog/a-history-of-ides-at-google
1•laurentlb•24m ago•0 comments

Aids Creeps Back in Parts of Zambia, a Year After U.S. Cuts to HIV Assistance

https://www.nytimes.com/2026/04/25/health/pepfar-hiv-aids-zambia.html
2•susiecambria•24m ago•0 comments

Project Cybersyn: Chile's Radical Experiment in Cybernetic Socialism (2023)

https://thereader.mitpress.mit.edu/project-cybersyn-chiles-radical-experiment-in-cybernetic-socia...
1•pseudolus•31m ago•0 comments

The Audience Nobody Saw

https://fromthelittoral.substack.com/p/the-audience-nobody-saw
2•MrVandemar•32m ago•0 comments

Nvidia releases CUDA-Oxide 0.1 for experimental Rust-to-CUDA compiler

https://www.phoronix.com/news/NVIDIA-CUDA-Oxide-0.1
2•birdculture•35m ago•0 comments

Musk vs. Altman week 2: OpenAI fires back, and Shivon Zilis reveals that Musk tr

https://www.technologyreview.com/2026/05/08/1137008/musk-v-altman-week-2-openai-fires-back-and-sh...
1•joozio•37m ago•0 comments

GpxFix – A tool to repair recordings of outdoor activities

https://www.gpxfix.eu/
1•taccp•39m ago•0 comments

LLMs are underutilized due to sub optimal management

https://alexzhang13.github.io/blog/2026/mgh/
1•melonmars•40m ago•0 comments

Show HN: DuoSolve – Daily grammer practice game

https://duobook.co/duosolve
1•celltalk•43m ago•0 comments

Vladimir Putin is losing his grip on Russia

https://www.economist.com/by-invitation/2026/05/06/vladimir-putin-is-losing-his-grip-on-russia
14•bazzmt•43m ago•5 comments

Practice reviewing risky AI-generated engineering output

https://www.proreview.dev/
1•shaad1337•45m ago•0 comments

Your Computer Doesn't Belong to You Anymore

https://aquisthoughts.substack.com/p/your-computer-doesnt-belong-to-you
6•ethanplant•49m ago•0 comments

Show HN: Memory Vault – local-first memory, hybrid search, knowledge graph

https://github.com/MihaiBuilds/memory-vault
1•mihaibuilds•52m ago•0 comments

Show HN: Aptmatic – a TUI for managing apt across a bunch of Debian boxes

https://crates.io/crates/aptmatic
1•growse•52m ago•0 comments

Kanvly – notes and boards with AI, now on iOS

https://kanvly.com
1•trotskomain•59m ago•0 comments

Lua as a practical "soft-bedrock" language

https://portal.mozz.us/gemini/zaibatsu.circumlunar.space/~solderpunk/gemlog/lua-as-a-practical-so...
3•karl42•1h ago•2 comments

Agentwerk: A minimal Rust crate for agentic apps

https://github.com/canvascomputing/agentwerk
1•schirrmacher•1h ago•0 comments

The Chiplet Illusion: New Moore's Law or the Most Expensive Cover-Up?

https://sourceryintel.com/reports/the-chiplet-illusion
1•freakynit•1h ago•0 comments

Show HN: Transformer Math Explorer

https://simonramstedt.com/tools/transformer/
4•rmst•1h ago•1 comments

Solar on canals reduces water evaporation by 70% and algae growth by 85%

https://www.pv-magazine.com/2026/05/04/solar-on-canals-reduces-water-evaporation-by-70-and-algae-...
4•ndr42•1h ago•1 comments

Free guided journaling during the Mental Health Awareness Month

https://journal.cubitoo.com/en
2•pawelkomarnicki•1h ago•1 comments

The Cost of Downsizing Social Security

https://www.newyorker.com/news/deep-state-diaries/the-real-cost-of-downsizing-social-security
2•littlexsparkee•1h ago•1 comments

Experimental Rust-to-CUDA Compiler

https://github.com/NVlabs/cuda-oxide
1•cgravill•1h ago•1 comments