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

The Space and Motion of Communicating Agents (2008) [pdf]

https://www.cl.cam.ac.uk/archive/rm135/Bigraphs-draft.pdf
1•dhorthy•50s ago•0 comments

Don't fall into the anti-AI hype – <antirez>

https://davidcel.is/links/2011919384662230086-dont-fall-into-the-anti-ai-hype-antirez
1•frizlab•2m ago•0 comments

How we built CoPE

https://blog.zentropi.ai/how-we-built-cope/
1•erlend_sh•3m ago•0 comments

Two Thinking Machines Lab Cofounders Are Leaving to Rejoin OpenAI

https://www.wired.com/story/thinking-machines-lab-cofounders-leave-for-openai/
2•monkeydust•4m ago•1 comments

Nuudel: Non-Tracking Appointment Tool

https://nuudel.digitalcourage.de/
1•doener•5m ago•0 comments

There Is No Green Transition, and This Book Explains Why

https://www.highspeed.blog/too-much-more/
2•doener•8m ago•0 comments

Iran's internet shutdown is now one of its longest ever, as protests continue

https://techcrunch.com/2026/01/15/irans-internet-shutdown-is-now-one-of-its-longest-ever-as-prote...
8•ukblewis•8m ago•0 comments

María Corina Machado says she presented Trump with her Nobel peace prize medal

https://www.theguardian.com/world/2026/jan/15/maria-corina-machado-says-she-presented-trump-with-...
2•vinni2•8m ago•1 comments

DHS used neo-nazi anthem for recruitment after fatal Minneapolis shooting

https://theintercept.com/2026/01/13/dhs-ice-white-nationalist-neo-nazi/
1•anigbrowl•9m ago•0 comments

Yacv (Yet Another Compiler Visualizer): LL and LR Parser Animations

https://github.com/ashutoshbsathe/yacv
1•fanf2•14m ago•0 comments

Releasing Rainbow Tables to Accelerate Net-NTLMv1 Protocol Deprecation

https://cloud.google.com/blog/topics/threat-intelligence/net-ntlmv1-deprecation-rainbow-tables
2•notmine1337•14m ago•0 comments

A Powerful New Stealth Model from a Top OSS Lab

https://blog.kilo.ai/p/announcing-a-powerful-new-stealth
1•emschwartz•14m ago•0 comments

Show HN: React hook for real-time voice with Gemini Live API

https://github.com/deflectionrate/gemini-live-react
1•loffloff•17m ago•0 comments

Favorite Rust Crates of 2025

https://docs.freestyle.sh/blog/rust-crates-2025
3•benswerd•18m ago•0 comments

Porsche Restored This 20-Year-Old Carrera GT to 'Zero-Kilometer Condition'

https://www.thedrive.com/news/porsche-restored-this-20-year-old-carrera-gt-to-zero-kilometer-cond...
1•PaulHoule•21m ago•1 comments

We built a free cross-app AI assistant inspired by Apple Intelligence

https://www.gethelios.xyz/
1•rogermas•23m ago•1 comments

Show HN: A WebGPU-based browser engine with "Blam "-style physics

2•goovbot•23m ago•0 comments

WP-Bench: A WordPress AI Benchmark

https://make.wordpress.org/ai/2026/01/14/introducing-wp-bench-a-wordpress-ai-benchmark/
2•chilipepperhott•28m ago•0 comments

The Cost of PostgreSQL Arrays

https://boringsql.com/posts/good-bad-arrays/
3•birdculture•29m ago•0 comments

General Availability for GitLab Duo Agent Platform

https://about.gitlab.com/blog/gitlab-duo-agent-platform-is-generally-available/
3•HieronymusBosch•31m ago•0 comments

Ring subscriptions mistakenly issue unexpected charges for the entire users base

https://piunikaweb.com/2026/01/15/ring-unexpected-ai-pro-charges/
2•artyom•34m ago•1 comments

The Daily Standup Is Broken: Why Modern Dev Teams Need a Reset

https://deadlocked.life/blog/standups-broken/
1•cebert•34m ago•0 comments

Musk Updates Starlink to Beat Iran's 'Kill Switch'–Makes It Free

https://www.forbes.com/sites/zakdoffman/2026/01/14/musk-updates-starlink-to-beat-irans-kill-switc...
7•Imustaskforhelp•38m ago•0 comments

Elon Musk's Grok 'Undressing' Problem Isn't Fixed

https://www.wired.com/story/elon-musks-grok-undressing-problem-isnt-fixed/
4•ceejayoz•38m ago•2 comments

Show HN: I built a 3D web-based multiplayer game with Claude Code

https://arena.ibuildstuff.eu
1•tombuildsstuff•42m ago•2 comments

The origin of the names of the days of the week in Portuguese

https://www.practiceportuguese.com/learning-notes/days-of-the-week/
2•DamonHD•42m ago•1 comments

European troops arrive in Greenland to boost the Arctic island's security

https://www.npr.org/2026/01/15/g-s1-106113/european-troops-arrive-greenland
22•geox•42m ago•6 comments

Using Git to attribute AI-generated code

https://github.com/mesa-dot-dev/agentblame
4•remolacha•47m ago•3 comments

Proof of Concept to Test Humanoid Robots

https://thehumanoid.ai/humanoid-and-siemens-completed-a-proof-of-concept-to-test-humanoidrobots-i...
1•0xedb•48m ago•0 comments

One Guy Crowdsourced More Than 500 Dashcams for Minneapolis to Film ICE

https://www.404media.co/how-one-guy-crowdsourced-more-than-500-dashcams-for-minneapolis-to-film-ice/
4•colinprince•49m ago•0 comments