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?

Not a Security Issue

https://nesbitt.io/2026/05/12/not-a-security-issue.html
1•stratos123•2m ago•0 comments

Aircraft owners lease out engines rather than whole planes as prices soar

https://www.ft.com/content/bd9f59a1-2d60-4122-a7da-6985dd536f94
1•JumpCrisscross•3m ago•0 comments

code2prompt: Convert any folder into a single LLM prompt

https://github.com/mufeedvh/code2prompt
1•SweetSoftPillow•5m ago•0 comments

Lusory attitude

https://en.wikipedia.org/wiki/Lusory_attitude
1•hhs•5m ago•0 comments

Is Russia Maneuvering to Threaten an ICEYE Satellite?

https://integrityisr.com/is-russia-maneuvering-to-threaten-an-iceye-satellite/
1•defly•5m ago•0 comments

Apple to Overhaul iOS 27 Siri, AI Features: First Peek

https://www.bloomberg.com/news/features/2026-05-28/apple-ios-27-photos-screenshots-revamped-siri-...
1•mfiguiere•5m ago•0 comments

Can Go AIs be adversarially robust?

https://arxiv.org/abs/2406.12843
1•Kotlopou•7m ago•0 comments

Ask HN: Is Claude Opus 4.8 broken?

2•pqdbr•8m ago•0 comments

A crypto billionaire is taking up the fight to bring crab back for Thanksgiving

https://sfstandard.com/2026/04/30/crypto-billionaire-taking-fight-bring-crab-back-thanksgiving/
1•randycupertino•9m ago•0 comments

Cutting LangGraph drafting time from 60s to 15s by fanning out independent nodes

https://thecompoundingcuriosity.substack.com/p/drafted-not-sent-how-i-built-the
1•anandbhaskaran•10m ago•0 comments

Clawd-on-Desk: a pixel desktop pet watching your AI coding agents

https://github.com/rullerzhou-afk/clawd-on-desk
1•aanet•11m ago•0 comments

Euro-Office, EU open-source alternative to MSFT Office and Google Docs launches

https://www.zdnet.com/article/euro-office-a-sovereign-cloud-based-office-suite-google-microsoft-a...
1•CrankyBear•11m ago•0 comments

Misguided JavaScript API: Origin Private File System

https://lapcatsoftware.com/articles/2026/5/5.html
2•frizlab•13m ago•0 comments

California sues 23andMe over large 2023 data breach

https://www.reuters.com/world/california-sues-23andme-over-2023-data-breach-2026-05-28/
2•1vuio0pswjnm7•16m ago•1 comments

Claude Opus 4.8 + AI medical diagnosis examples

https://github.com/joelparkerhenderson/ai-medical-diagnosis-examples
1•jph•24m ago•0 comments

Minimax M3

https://www.minimax.co.uk/products/water-softeners/minimax-m3-water-softener/
12•ckrapu•25m ago•5 comments

Copyright vs. Copyleft (2007)

https://www.gnu.org/gwm/libredocxml/x53.html
2•merelydev•25m ago•0 comments

Gustav Klimt and Egon Schiele in Conversation

https://www.theparisreview.org/blog/2018/01/31/the-drawings-of-klimt-and-schiele/
2•rballpug•28m ago•0 comments

Apollo Official CLI Live

https://github.com/apolloio/apollo-io-cli
1•jtylerphillips•30m ago•0 comments

How to Beat Superhuman AIs [at Go] [video]

https://www.youtube.com/watch?v=H4DvCj4ySKM
1•Kotlopou•31m ago•0 comments

Starbucks to Take AI Usage into Account in Tech Workers' Bonuses

https://www.bloomberg.com/news/articles/2026-05-28/starbucks-to-take-ai-usage-into-account-in-tec...
4•petethomas•32m ago•0 comments

HartBreaker: Deterministic Fuzzing of Multi-Hart RISC-V CPUs

https://comsec.ethz.ch/research/hardware-design-security/hartbreaker-deterministic-fuzzing-of-mul...
1•matt_d•32m ago•0 comments

Starfish Prime, a nuclear detonation 250 miles above the Pacific in 1962

https://maketecheasier.com/mte-x-in-1962-the-us-detonated-a-1-4-megaton-nuclear-bomb-250-miles-ab...
2•dxs•34m ago•0 comments

Apple Working to Cram Gemini into iPhone

https://arstechnica.com/ai/2026/05/apple-reportedly-trying-to-distill-googles-multi-trillion-para...
3•dlx•34m ago•0 comments

The Genius of the Barn Owl's Feathers

https://thereader.mitpress.mit.edu/the-genius-of-the-barn-owls-feathers/
2•EA-3167•35m ago•0 comments

Claude Opus 4.8: 4 Features That Change Our Daily Work with Claude

https://medium.com/@alirezarezvani/claude-opus-4-8-4-features-that-change-our-daily-work-with-cla...
2•jungard•41m ago•0 comments

Taking Children from Their Parents Without a Court Order

https://www.newyorker.com/news/our-local-correspondents/taking-children-from-their-parents-withou...
3•petethomas•42m ago•0 comments

Protecting communities from scrapers and platform abuse: modnews

https://old.reddit.com/r/modnews/comments/1tq9vxo/protecting_communities_from_scrapers_and_platform/
2•pavel_lishin•45m ago•0 comments

Cyber Offense: How Far Can Private Organizations Go?

https://www.lawfaremedia.org/article/cyber-offense--how-far-can-private-organizations-go
2•1970-01-01•45m ago•0 comments

Show HN: Fort – one command to check if your Mac is secure

https://github.com/djadmin/fort
1•djadmin•46m ago•0 comments