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

Velocipedia

https://www.gianlucagimini.it/portfolio-item/velocipedia/
1•lloeki•55s ago•0 comments

IETF draft and Rust POC: NTP for Bitcoin price (no oracles)

https://github.com/CryptoPriceProtocol/BitCoinPriceProtocol
1•usacoder•3m ago•0 comments

UK Parliament e-petition Debate: Do not introduce Digital ID cards

https://hansard.parliament.uk/Commons/2025-12-08/debates/9E01F17C-557A-4D02-8A93-B573721B8B20/a
1•mapleoin•3m ago•0 comments

Former Mozaic Payments CEO arrested, charged with defrauding PE investor

https://www.reuters.com/legal/government/tech-startup-ceo-defrauded-private-equity-firm-out-20-mi...
1•ilamont•4m ago•0 comments

Show HN: Peaktech PSU Control from Emacs

https://github.com/bwachter/peaktech-psu
1•finaard•7m ago•0 comments

BJH OS – Free Open Source Browser OS for Windows, Mac, Linux, Android, iPhone

https://bjhos.unaux.com
1•Haris18•7m ago•0 comments

Fix for Slow Open and Save Dialog on macOS

https://rknight.me/blog/fix-for-slow-open-and-save-dialog-macos/
1•rknightuk•9m ago•0 comments

Steam Workshop Downloader – Fast and Free Tool

https://steamworkshopdownloader.net
2•quchao•12m ago•2 comments

Show HN: A really really simple text-based budget app

https://github.com/alexandreprl/budget-as-a-text
1•Eagle64•13m ago•0 comments

OpenAI, Anthropic, and Block donate agent tools to new 'Agentic AI Foundation'

https://techoreon.com/openai-anthropic-block-agentic-ai-foundation-linux/
1•GeorgeWoff25•17m ago•0 comments

Common Lisp, ASDF, and Quicklisp: packaging explained

https://cdegroot.com/programming/commonlisp/2025/11/26/cl-ql-asdf.html
2•todsacerdoti•17m ago•0 comments

Show HN: Voice and Messaging Agents Using the WhatsApp Calling API

https://www.livetok.ai
1•gustavogb•17m ago•0 comments

Scientists Thought Parkinson's Was in Our Genes. It Might Be in the Water

https://www.wired.com/story/scientists-thought-parkinsons-was-in-our-genes-it-might-be-in-the-water/
2•quapster•21m ago•1 comments

Nissan and Wayve Sign Agreements to Deliver Next-Generation Driver Assistance

https://wayve.ai/press/nissan-wayve-sign-definitive-agreements/
1•anonymooooos•23m ago•0 comments

U.S. plans to ask visitors to disclose 5 years of social media history

https://www.washingtonpost.com/immigration/2025/12/10/esta-social-media-united-states/
3•cm2187•25m ago•0 comments

Health premiums rose nearly 3x rate of worker earnings over the past 25 years

https://theconversation.com/health-insurance-premiums-rose-nearly-3x-the-rate-of-worker-earnings-...
1•pseudolus•28m ago•0 comments

Show HN: Vibecc – Write code in natural language and compile to a C binary

https://github.com/Jacques2Marais/vibecc
1•Jacques2Marais•30m ago•0 comments

"I Wasted 8 Years in Crypto": A Builder's Exit Note Goes Viral Across Asia

https://beincrypto.com/i-wasted-8-years-in-crypto/
1•decimalenough•31m ago•0 comments

E-petition debate relating to digital ID – Monday 8 December 2025

https://news.ycombinator.com/
1•hhdave•32m ago•1 comments

Recent Travel News

https://wowfare.com/en-us/blog/pegasus-airlines-launches-direct-istanbul-bilbao-flights/
1•belatwing•33m ago•0 comments

NPM.watch: Track NPM Downloads, Package Safety and Live Stats

https://www.npm.watch
2•Next-Icons•34m ago•1 comments

Show HN: Deploy Kubernetes apps with RunOS, free to use

https://runos.com/blog/runos-open-to-everyone.html
1•didierbreedt•35m ago•0 comments

OVH Public Cloud Database Outage "resolved"

https://public-cloud.status-ovhcloud.com/incidents/4gd0bgz7zm2j
1•voodooEntity•36m ago•1 comments

Nanoparticles that enhance mRNA delivery could reduce vaccine dosage and costs

https://phys.org/news/2025-11-nanoparticles-mrna-delivery-vaccine-dosage.html
1•PaulHoule•36m ago•0 comments

Letting Nvidia sell H200s to China is closing the door after horse has bolted

https://www.theregister.com/2025/12/09/nvidia_h200s_china_ai/
1•pseudolus•37m ago•0 comments

I built an AI that reads your Git history and writes status reports

1•slmslm•37m ago•1 comments

AI will make formal verification go mainstream

https://martin.kleppmann.com/2025/12/08/ai-formal-verification.html
3•mau•44m ago•0 comments

Webb identifies earliest supernova to date, shows host galaxy

https://esawebb.org/news/weic2523/
1•doener•45m ago•0 comments

Local news organizations discover the value of their own archives

https://www.niemanlab.org/2025/12/local-news-organizations-discover-the-value-of-their-own-archives/
2•giuliomagnifico•47m ago•1 comments

Show HN: Sift – Turning chore into a hyper-personalized, immersive journey

https://sift-11a.pages.dev/
1•paperplaneflyr•47m ago•0 comments