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

When Decoded Isn't Verified: Closing a Trust-Boundary Gap in Envoy's JWT Filter

https://netguard24-7.com/blog/envoy-jwt-authn-confused-deputy-pr-43630
1•cybrdude•1m ago•0 comments

The Roomba Guy's Second Act: A Robot You'll Want to Snuggle

https://www.wsj.com/tech/ai/familiar-machines-and-magic-robot-c8711e45
1•aanet•1m ago•1 comments

April 2026 Links

https://nomagicpill.substack.com/p/april-2026-links
1•nomagicpill•3m ago•0 comments

Cerebras Leads Crop of IPOs Rushing to Tap Market Before SpaceX

https://techcrunch.com/2026/05/04/openais-cozy-partner-cerebras-is-on-track-for-a-blockbuster-ipo/
2•giwook•5m ago•0 comments

ARPA-H allocates $35M to osteoarthritis reversal therapy

https://www.colorado.edu/today/2026/04/06/simple-shot-shows-promise-reverse-osteoarthritis-within...
1•warbaker•6m ago•0 comments

Hantavirus crops up on a cruise ship – what scientists are watching

https://www.nature.com/articles/d41586-026-01450-7
1•warbaker•12m ago•0 comments

The Grand Theory of Everything (2007)

https://dl.acm.org/doi/pdf/10.1145/1281421.1281430
2•jruohonen•14m ago•0 comments

Ask HN: Cryptic refusals of credit cards with Firefox?

1•everybodyknows•14m ago•0 comments

KDE Plasma gesture handling and other input related news

https://blogs.kde.org/2026/05/03/gestures-in-graz-and-beyond/
1•f_r_d•14m ago•0 comments

Bringing WolfHSM to STM32H5 TrustZone: Production-Grade HSM on a Cortex-M33

https://www.wolfssl.com/bringing-wolfhsm-to-stm32h5-trustzone-production-grade-hsm-on-a-cortex-m33/
1•aidangarske•15m ago•0 comments

The A.I. Industry Is Booming. When Will It Make Money?

https://www.newyorker.com/news/the-financial-page/the-ai-industry-is-booming-when-will-it-actuall...
1•petethomas•17m ago•0 comments

Show HN: Continuum, a pedantic recreation of the OMNI font

https://github.com/ChristopherDrum/continuum/
2•ChristopherDrum•18m ago•0 comments

The First Firmware TPM with Post-Quantum Cryptography

https://www.wolfssl.com/the-first-firmware-tpm-with-post-quantum-cryptography/
1•aidangarske•18m ago•0 comments

SEC vs. Consent Motion for Entry of Final Judgement [pdf]

https://www.sec.gov/files/litigation/complaints/2026/judgment26548.pdf
1•ksherlock•20m ago•0 comments

The First COSE Implementation with ML-DSA

https://aidangarske.github.io/wolfCOSE/blog/wolfcose-pqc-cose/
1•aidangarske•23m ago•0 comments

The case against OpenAI is getting markedly stronger

https://twitter.com/garymarcus/status/2051347785761616101
2•abriosi•24m ago•0 comments

Why Waste Money?

https://rentry.co/it937bh4
1•gavmor•26m ago•1 comments

Show HN: 10K English words traced to 4 foundations(Space, Time, Energy, Pattern)

1•sauronsrv•27m ago•0 comments

Ask HN: Where are you getting your AI news from?

2•baetylus•28m ago•0 comments

SprintiQ – open-source sprint planning for Claude Code

https://github.com/SprintiQ-Incorporated/sprintiq
2•sprintiq•31m ago•0 comments

One Map Key, One Lookup

https://testing.googleblog.com/2026/04/one-map-key-one-lookup.html
2•birdculture•34m ago•0 comments

Must We 'Do Lunch'?

https://www.ft.com/content/13265324-7614-40a2-a3f6-0066ffb83c21
1•JumpCrisscross•36m ago•0 comments

Nothing Is Something

https://blog.jim-nielsen.com/2024/nothing-is-something/
2•SpyCoder77•36m ago•0 comments

HeadVis: An Interactive Tool for Investigating Attention Heads

https://transformer-circuits.pub/2026/headvis/index.html
2•rajeevn•41m ago•0 comments

Powerful AI finds 100 hidden planets in NASA data including extreme worlds

https://www.sciencedaily.com/releases/2026/05/260502233926.htm
3•bilsbie•45m ago•0 comments

Version-controlled databases using Prolly trees

https://lwn.net/SubscriberLink/1068864/4d53e651a1254bce/
1•zorgmonkey•46m ago•0 comments

Show HN: Node-Vmm – Linux MicroVMs in Pure Node.js for Mac/Windows/Linux in ~1s

https://github.com/misaelzapata/node-vmm
3•misaelzapata•46m ago•0 comments

Show HN: AI that responds in Star Wars crawl style

https://may-the-4th-gpt.vercel.app/
1•zahlekhan•47m ago•0 comments

Garage Sale Tracker App

https://www.garagesaletracker.app/
1•mmfp•50m ago•1 comments

The Valley of Calm

https://blog.joemag.dev/2026/05/the-valley-of-calm.html
3•matt_d•51m ago•0 comments