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

Administration Planning to Blow Off FISA Court's Ordered Section 702 Fixes

https://www.techdirt.com/2026/04/15/administration-apparently-planning-to-blow-off-fisa-courts-or...
1•Cider9986•44s ago•0 comments

Connect maker devices to Claude Code and Cowork

https://github.com/anthropics/claude-desktop-buddy
1•felixrieseberg•1m ago•0 comments

Comfy.Guide

https://comfy.guide/
3•jethronethro•2m ago•0 comments

QSOlog – Offline-first PWA logbook for amateur radio operators

https://nuetzliches.github.io/qso-log/
1•nutz-bob•14m ago•0 comments

I Hate AI

5•jwpapi•17m ago•1 comments

100M commits to GitHub without using Git push

https://github.com/Wuerfelhusten/commitment
1•Wuerfelhusten•22m ago•1 comments

A type of bike theft in San Francisco

https://shub.club/writings/2026/april/a-type-of-bike-theft/
3•forthwall•30m ago•0 comments

Hospital at centre of child HIV outbreak caught reusing syringes in Pakistan

https://www.bbc.com/news/articles/clyrd818gd2o
3•flykespice•30m ago•0 comments

Breaking from Your Parents [video]

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

I automated my local barbershop's chaos with code

https://ravoor.com/ar
5•megoxv•33m ago•0 comments

Stop New York's Attack on 3D Printing

https://www.eff.org/deeplinks/2026/04/stop-new-yorks-attack-3d-printing
3•iamnothere•34m ago•0 comments

Unwritten – 3-minute AI short film, Top at Soulscape 2026

https://www.youtube.com/watch?v=rzdvt-qOysI
1•gltanaka•36m ago•0 comments

Show HN: VCoding – A 5 MB native Windows IDE with no dynamic dependencies

1•Tonyjw2002•39m ago•0 comments

Planning and Monitoring Indoor Vertical Green Living Walls with Remote Sensing

https://onlinelibrary.wiley.com/doi/10.1155/ina/5782002
1•PaulHoule•40m ago•0 comments

George Orwell Predicted the Rise of "AI Slop" in Nineteen Eighty-Four (1949)

https://www.openculture.com/2026/04/how-george-orwell-predicted-the-rise-of-ai-slop.html
12•doener•42m ago•3 comments

Show HN: LLMs don't hallucinate because they're bad at math, it's the format

https://github.com/yvonboulianne/laeka-rational
2•yvonboulianne•43m ago•0 comments

Ne, the Nice Editor

https://github.com/vigna/ne
2•Lyngbakr•43m ago•0 comments

Everything we like is a psyop

https://techcrunch.com/2026/04/16/everything-we-like-is-a-psyop/
2•evo_9•44m ago•0 comments

North Korea targets macOS users in latest heist

https://www.theregister.com/2026/04/16/north_korea_social_engineering_macos/
2•Bender•44m ago•0 comments

Google Chrome lacks fingerprinting protection

https://www.theregister.com/2026/04/16/google_chrome_lacks_browser_fingerprinting/
3•Bender•45m ago•2 comments

QUIC will soon be as important as TCP – but it's vastly different

https://www.theregister.com/2026/04/16/quic_explained/
3•Bender•46m ago•0 comments

Frank Dudley Beane's Experience with Ergot and Cannabis Indica (1884)

https://publicdomainreview.org/collection/experience-with-ergot-and-cannabis/
3•apollinaire•51m ago•0 comments

The Book News Isn't All Bad

https://reactormag.com/the-book-news-isnt-all-bad/
2•samclemens•52m ago•0 comments

Claude Opus 4.7 System Prompt Leaked

https://twitter.com/elder_plinius/status/2044857095439421885
4•giancarlostoro•58m ago•0 comments

The cover of C++ The Programming Language raises questions not answered by cover

https://devblogs.microsoft.com/oldnewthing/20260401-00/?p=112180
3•ibobev•58m ago•1 comments

Isolating AI Coding Agents on Bare Metal

https://blog.singlr.ai/isolating-ai-coding-agents-bare-metal-incus-podman/
3•jacobobryant•58m ago•0 comments

Cave under castle with prehistoric hippo bones 'once in a lifetime' find

https://www.bbc.com/news/articles/c8ejjw7377jo
3•Lyngbakr•59m ago•0 comments

How customer lists and trademarks help companies borrow

https://www.chicagobooth.edu/review/how-customer-lists-trademarks-help-companies-borrow
2•hhs•59m ago•0 comments

Parcae: Doing More with Fewer Parameters Using Stable Looped Models

https://sandyresearch.github.io/parcae/
2•matt_d•59m ago•0 comments

Runway CEO: AI could help Hollywood make 50 films instead of 1 $100M blockbuster

https://techcrunch.com/2026/04/16/runway-ceo-says-ai-could-help-hollywood-make-50-films-instead-o...
1•bookofjoe•1h ago•1 comments