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?

Is China using fentanyl as a weapon against the United States?

https://en.unav.edu/web/global-affairs/esta-china-usando-el-fentanilo-como-arma-contra-estados-un...
2•Stevvo•5m ago•0 comments

China's unfinished buildings have created stranded assets with substantial costs

https://www.cell.com/one-earth/fulltext/S2590-3322(26)00050-3
1•littlexsparkee•5m ago•0 comments

Gaps in AI Development Closing 2.1B in Pain

https://news.novonavis.com/builders
1•capagg•10m ago•1 comments

Volkswagen Detects CI Server Tests and Ensures They Pass (2015)

https://github.com/auchenberg/volkswagen
2•birdculture•10m ago•0 comments

'No Way to Prevent This,' Says Only Package Manager Where This Regularly Happens

https://kevinpatel.xyz/posts/no-way-to-prevent-this/
2•alligatorplum•13m ago•0 comments

Picollo: Modern HDR histogram and PMU counters for .NET

https://hotforknowledge.com/2026/05/15/introducing-picollo/
1•buybackoff•14m ago•1 comments

Show HN: Expo Vibe – Expo apps that builds Expo apps

https://github.com/mishushakov/expo-vibe
1•ushakov•14m ago•0 comments

I broke AppLovin's mediation cipher protocol

https://www.buchodi.com/i-broke-applovins-mediation-cipher-protocol/
1•lmbbuchodi•14m ago•0 comments

Codex is for prosumers – here's why (and how) to switch

https://twitter.com/omooretweets/status/2053858113892262193
1•gmays•15m ago•0 comments

Claude Took the Unfair Bullet for Ending Finger-Based Pricing

https://getlago.substack.com/p/1577a99d-e9d1-41d2-82e4-f11169e6654d
1•timbourcier•17m ago•0 comments

Vibe Coding Gone Too Far: We Added ChatGPT to a Toaster, Give Us $10M

https://www.bwanaerp.com/blog/vibe-coding-gone-too-far-we-added-chatgpt-to-a-toaster-give-us-10m
1•instarlaxy•20m ago•1 comments

Turso Now Includes Unlimited Active Databases for Everybody

https://turso.tech/blog/turso-now-includes-unlimited-databases-for-everybody
1•tjek•26m ago•0 comments

LiteLLM Agent Platform: Run Claude Code/Codex On-Prem Sandboxes and Vaults

https://github.com/BerriAI/litellm-agent-platform
1•ij23•27m ago•0 comments

New Nightmare Just Dropped: '3D' Animated Ads on Trucks in Traffic

https://www.thedrive.com/news/new-nightmare-just-dropped-3d-animated-ads-on-trucks-in-traffic
3•cf100clunk•28m ago•0 comments

Terence Tao: New Mathematical Workflows – Future of Mathematics

https://www.youtube.com/watch?v=Uc2zt198U_U
4•tcp_handshaker•29m ago•0 comments

NASA Captures Volatile Changes in Earth's Artificial Light

https://www.universetoday.com/articles/nasa-captures-volatile-changes-in-earths-artificial-light
2•tcp_handshaker•30m ago•0 comments

Second Automaker Sounds Alarm over Dwindling Motor Oil Stock

https://www.thedrive.com/news/second-automaker-sounds-alarm-over-dwindling-motor-oil-stock
2•cf100clunk•30m ago•0 comments

Show HN: Epiq – Distributed Git based issue tracker TUI

https://ljtn.github.io/epiq/
3•jolaflow•31m ago•1 comments

NYT and Vaping: How to Lie by Saying Only True Things

https://gwern.net/vaping
2•Ariarule•33m ago•0 comments

AGI and the Future of Reasoning – Future of Mathematics

https://www.youtube.com/watch?v=gf1uwCH0HUU
3•tcp_handshaker•34m ago•0 comments

Ken Liu on AI and Freedom

https://www.chinatalk.media/p/ken-liu-on-ai-and-freedom
2•alexnew•40m ago•0 comments

Amazon pressured one of its teams to develop an AI game: Project Trident

https://www.eurogamer.net/amazon-ai-game-project-trident-laid-off-anyway-report
3•oceansky•42m ago•0 comments

Conscience-Performance Risk in AI Governance Language

https://philpapers.org/rec/AEGRRA
1•aegissolis•50m ago•0 comments

We Can Now Read What Claude Is Thinking. Kind Of

https://priorcontext.substack.com/p/we-can-now-read-what-claude-is-thinking
2•contextwindow•51m ago•2 comments

Crystals found inside wreckage from the first nuclear bomb test

https://www.scientificamerican.com/article/strange-crystals-found-inside-wreckage-from-the-first-...
1•jumploops•55m ago•0 comments

Google explains why some new Gmail accounts only get 5GB storage

https://www.androidauthority.com/google-free-15gb-gmail-storage-ending-explanation-3667360/
2•sumanep•55m ago•0 comments

World’s first native color LiDAR gives machines human-like vision

https://newatlas.com/technology/ouster-rev8-native-color-lidar/
2•breve•57m ago•0 comments

We built an agent specialized for CI (using the 3 Claude models)

https://www.mendral.com/blog/same-llm-different-agent
1•shad42•59m ago•0 comments

I recreated the experience of reading the morning sports section

https://thesportspage.app
1•anjrued•1h ago•2 comments

ExploitGym: Can AI agents turn bugs into exploits?

https://arxiv.org/abs/2605.11086
1•p_stuart82•1h ago•0 comments