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?

Command A+: Making sovereign agentic capabilities available to all

https://cohere.com/blog/command-a-plus
1•offbyone42•39s ago•0 comments

Splinter Cell veteran says realistic modern lighting has screwed up stealth game

https://www.rockpapershotgun.com/splinter-cell-veteran-says-realistic-modern-lighting-has-screwed...
1•Tomte•1m ago•0 comments

Weight loss drugs could save airlines money on fuel as Americans slim down

https://www.cbsnews.com/news/weight-loss-drugs-glp1s-airlines-fuel-costs/
1•mattas•6m ago•1 comments

Everlane Finalizes Sale to Shein

https://www.nytimes.com/2026/05/22/style/shein-everlane-fast-fashion-sustainability.html
1•lxm•9m ago•0 comments

Robotaxis Aren't as Autonomous as They Seem

https://junkoyoshidaparis.substack.com/p/robotaxis-arent-as-autonomous-as
1•mattas•9m ago•0 comments

Kids are Graduating Without Being Able to Read [video][34 mins]

https://www.youtube.com/watch?v=PcSApLcxpYc
1•Bender•12m ago•0 comments

Workspace Orchestration

https://hyperspeed.work
2•Asadsangabi•18m ago•0 comments

DeepSeek-V4 KV Cache Explained: Why 1M Context Uses Less VRAM

https://knightli.com/en/2026/05/18/deepseek-v4-kv-cache-compressed-attention/
1•vinhnx•21m ago•0 comments

Lynote Humanize Text – Open-source AI text humanization toolkit

https://github.com/lynote-ai/humanize-text
2•Danny6969•21m ago•0 comments

MetalBench – Benchmark for Apple Silicon's Metal Shading Lang

https://github.com/Lazarus-931/MetalBench
1•AlazarManakelew•28m ago•1 comments

Irb-autosuggestions: Fish-like autosuggestions for irb

https://github.com/unurgunite/irb-autosuggestions
1•thunderbong•29m ago•0 comments

GKN Aerospace – Hazard Zone Simulator - Garden Grove Chemical Tank Emergency

https://joevezzani.github.io/hazard-zone-sim/
1•palidanx•31m ago•0 comments

Sign in Nobody Wants AI Anymore [video][12 mins]

https://www.youtube.com/watch?v=FQpZdCKgc6w
2•Bender•33m ago•0 comments

AI Has Taken over Open Source

https://socket.dev/blog/ai-has-taken-over-open-source
1•ChicknNuggt•38m ago•1 comments

How to Teach AI the "Taste"

2•Jasonwang123•41m ago•1 comments

Code-mapper: Free CLI tool to reduce LLM token usage on any codebases

https://github.com/damien220/code-mapper
3•Damien_220•42m ago•0 comments

The Mystical Meaning of 369 and Its Link to Nikola Tesla

https://www.mentalfloss.com/random-facts/meaning-number-369-nikola-tesla
2•anujbans•46m ago•0 comments

Important Update: Transitioning Bitnami Offerings on AWS

https://community.broadcom.com/tanzu/blogs/beltran-rueda-borrego/2026/05/20/important-update-tran...
1•zoptie•1h ago•1 comments

Ask HN: Have you seen Star Wars The Mandalorian and Grogu,nice CGI, no storyline

1•eagle10ne•1h ago•0 comments

China Launches Manned Spaceship on Mission Orbit Tiangong Space Station [video]

https://www.youtube.com/watch?v=Qk-IZODWUzM
1•Bender•1h ago•0 comments

D. Trump Jr. and Eric Trump Running Felony Fraud Scheme Prosecutable in New York

https://cmarmitage.substack.com/p/donald-trump-jr-and-eric-trump-are
18•JumpCrisscross•1h ago•3 comments

Geopolitical Technicals

1•almogodel•1h ago•1 comments

Global AI Diffusion: Q1 2026 Trends and Insights [pdf]

https://www.microsoft.com/en-us/research/wp-content/uploads/2026/05/Microsoft-AI-Diffusion-Report...
3•gmays•1h ago•1 comments

Ravens Don't Follow Wolves, They Predict Their Patterns

https://scitechdaily.com/ravens-dont-follow-wolves-they-predict-them/
1•Gaishan•1h ago•0 comments

NymphCast – Libre Multicast DNS Media Streaming to Any Device

https://github.com/MayaPosch/NymphCast
1•righthand•1h ago•1 comments

Freediving, Embodiment and Humanity – Joanna Rutkowska

https://tracesofhumanity.org/freediving-embodiment-and-humanity/
1•transpute•1h ago•0 comments

How Telescope Rancher Became the Hot New Job in Texas

https://www.youtube.com/watch?v=bN48vEqaQs8
2•colinbartlett•1h ago•0 comments

Ghost CMS SQL injection flaw exploited in large-scale ClickFix campaign

https://www.bleepingcomputer.com/news/security/ghost-cms-sql-injection-flaw-exploited-in-large-sc...
3•sbulaev•1h ago•0 comments

HN: Silau – AI detects employee burnout"

1•silau•2h ago•2 comments

Army runs secret wargames under central London

https://www.bbc.com/news/articles/c2e2vjl2ry8o
3•Vermin2000•2h ago•1 comments