frontpage.
newsnewestaskshowjobs

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?

Agentic journal of higher categorical semantics

https://higher-categorical-semantics.pages.dev/announcements/call-for-papers
1•measurablefunc•57s ago•0 comments

An open-source, clean-room reimplementation of Microsoft Word in pure Rust

https://github.com/storytold/wordcraft
1•espeed•1m ago•0 comments

Linus Torvalds Working on a Hefty Linux Kernel Improvement with Claude Code

https://www.phoronix.com/news/Linus-Torvalds-Claude-Code
2•mdp2021•1m ago•0 comments

American Academy of Pediatrics renews call for ban on raw milk

https://www.cspi.org/cspi-news/american-academy-pediatrics-renews-call-ban-raw-milk
1•geox•9m ago•0 comments

Eye Cells May Have Been Rejuvenated for the First Time in People

https://time.com/article/2026/10/08/eye-cells-rejuvenated-for-the-first-time-in-people/
1•pseudolus•11m ago•0 comments

Iran's threat to cut undersea cables in Strait of Hormuz poses a threat to Gulf

https://theconversation.com/irans-threat-to-cut-undersea-cables-in-strait-of-hormuz-poses-a-serio...
3•snarky-comments•13m ago•0 comments

Show HN: SwapBackdrop – reuse one cutout across video backgrounds and frames

https://swapbackdrop.com/
2•robot1996•26m ago•0 comments

USGS Tsunami Warning System

https://www.tsunami.gov/
3•hmnxrne•31m ago•0 comments

Why is bun so disliked?

https://www.reddit.com/r/webdev/comments/1wx1y2u/why_is_bun_so_disliked/
1•lr0•32m ago•0 comments

Codesmith's flagship open source project compromised, thousands at risk

https://www.deepwoodssec.com/research/reactime
4•michaelnovati•32m ago•0 comments

Elon Musk's PAC is spreading inaccurate voting info, election officials say

https://www.cnn.com/2026/10/10/politics/elon-musk-pac-inaccurate-voting-information
8•MilnerRoute•32m ago•0 comments

Thoughts on the Current State (Especially Quality Issues) and Future of Bun

https://github.com/oven-sh/bun/issues/27664
2•lr0•33m ago•0 comments

Wildfire xPrize Winners

https://robotsandstartups.substack.com/p/wildfire-xprize-winners-women-in
3•robotlaunch•34m ago•1 comments

Ask HN: Curious, who can afford to buy in SF?

3•rubicon33•39m ago•2 comments

Show HN: I made an agent can self-improving while working

https://yehuitang0316.github.io/gear-site/
4•yt1998•48m ago•2 comments

AI is changing how Lawyers work – and putting the billable hour under pressure

https://www.cnbc.com/2026/10/10/ai-lawyers-billable-hour-legal-careers.html
5•peter_d_sherman•54m ago•0 comments

Ask HN: Can we discourage Show HNs that "ship the first draft"

2•cadamsdotcom•54m ago•1 comments

Show HN: Drune – Personalize your AI and use it anywhere

https://drune.ai/
1•vskalyan•56m ago•0 comments

Fall To One (Math Song) [video]

https://www.youtube.com/watch?v=9juhm97co1U
4•metadat•56m ago•0 comments

The Sysco Situation Just Got Worse [video]

https://www.youtube.com/shorts/SVm9M7Ag3lk
3•mikhael•1h ago•0 comments

Things that don't bother me as your manager

https://twitter.com/EmmaBostian/status/2107555593531588648
7•LouisLazaris•1h ago•1 comments

Doory – Open-Source Canva

https://github.com/shaongitbd/doory
6•acley•1h ago•0 comments

The Ethiopian Economic Miracle

https://theborys.substack.com/p/the-ethiopian-economic-miracle
4•kspacewalk2•1h ago•0 comments

What Makes a Good Notebook

https://scrively.org/what-makes-a-good-notebook-etchr-lab-interview/
5•andsoitis•1h ago•0 comments

Whey up: Protein powder prices soar as global demand grows

https://www.cbc.ca/news/business/whey-up-protein-powder-prices-soar-as-global-demand-grows-9.7369910
5•BiraIgnacio•1h ago•0 comments

Creative Fuel Prompts

https://fromthepencup.wordpress.com/2026/10/02/creative-fuel-prompts/
2•andsoitis•1h ago•0 comments

Bone Stress Injuries in Runners Using Carbon Fiber Plate Footwear

https://pmc.ncbi.nlm.nih.gov/articles/PMC10356879/
5•bookofjoe•1h ago•0 comments

Engineering Ethics Should Be Part of Technical Training

https://spectrum.ieee.org/integrating-engineering-ethics-education
7•rbanffy•1h ago•4 comments

The Moon Mission That's a High-Tech Cave Hunt

https://www.universetoday.com/articles/nasa-selects-gimli-to-search-the-marius-lunar-pit-for-a-po...
7•rbanffy•1h ago•0 comments

Open Source RUM (Real User Monitoring)

https://www.basicrum.com/
7•ssttoo•1h ago•0 comments