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?

Show HN: Kheeper, a registry designed for bootable images

https://kheeper.com/
1•areed•3m ago•0 comments

Trump's Border Spending Spurs Boom in AI-Infused Surveillance

https://www.wsj.com/tech/trumps-border-spending-spurs-boom-in-ai-infused-surveillance-4714521b
1•lxm•9m ago•0 comments

America the Undammed

https://www.nytimes.com/2026/05/07/climate/america-the-undammed.html
1•lxm•10m ago•0 comments

University student arrested in Taiwan for radio hack that halted high speed rail

https://www.rtl-sdr.com/student-arrested-in-taiwan-for-using-sdr-and-handheld-radios-to-halt-four...
1•bsgamble•18m ago•0 comments

SmartScreen warnings triggered after migration from EOC. EV certs affected too

https://github.com/Azure/artifact-signing-action/issues/128
1•polywickstudio•20m ago•1 comments

Open Source Volunteer Opportunities

https://ossvolunteers.com/
1•pabs3•22m ago•0 comments

SVG Frame-by-Frame Animation Generator

https://github.com/Emasoft/svg2fbf
1•beepill•22m ago•1 comments

The Bottom-Up Building of a Language for Subleq with Text Macros

https://coe.psu.ac.th/ad/subleq/
1•ADavison2560•25m ago•0 comments

The Greatest Shot in Television: James Burke Had One Chance to Nail This Scene

https://www.openculture.com/2024/10/the-greatest-shot-in-television.html
8•susam•27m ago•0 comments

Copilot Builder enables welding with AI

https://www.millerwelds.com/products/copilot-builder-with-blue-iq-powered-by-novai
1•DarkContinent•29m ago•0 comments

University Claims Withholding Water from Data Center 'Unlawfully Discriminatory'

https://www.404media.co/university-claims-withholding-water-from-nuclear-weapons-data-center-is-u...
1•adrienne•31m ago•0 comments

I Got Tired of Rewriting Prompts So I Built This

https://github.com/Ademking/SkillPrompts
1•ademking•33m ago•0 comments

Trusted Computing Frequently Asked Questions (2003)

https://www.cl.cam.ac.uk/archive/rja14/tcpa-faq-1.0.html
1•userbinator•34m ago•0 comments

SzPredict – open seizure prediction benchmark (all 6 baselines fail)

https://github.com/hyperreal-ai/SzPredict
1•hyperreal-ai•37m ago•0 comments

Remove/replace links pointing to GNOME Calendar, and update branding

https://gitlab.com/linuxmint/pins/mint/gnome-calendar/-/work_items/1
1•prathamtharwani•39m ago•0 comments

Singapore Foreign Minister to Keynote AI Engineer Singapore

https://old.reddit.com/r/singapore/comments/1t97tnx/vivian_balakrishnan_vibe_coded_an_ai_second_b...
1•doppp•43m ago•0 comments

Making cross-platform SIMD code pleasant

https://bkaradzic.github.io/posts/typeless-simd/
1•RUI-0517•50m ago•0 comments

Today Is World Password Day

https://itnerd.blog/2026/05/07/today-is-world-password-day-2/
2•mooreds•52m ago•0 comments

BSides Austin Is on Hold

https://bsidesaustin.com/
1•bean-weevil•52m ago•0 comments

Recursive Multi-Agent Systems

https://recursivemas.github.io/
1•jonbaer•56m ago•0 comments

What can singing mice say about human speech?

https://phys.org/news/2026-05-mice-human-speech.html
1•gmays•56m ago•0 comments

Ask HN: How have you spent time outside work for the past couple of weeks?

2•alex77456•57m ago•0 comments

Up in Smoke

https://thebaffler.com/odds-and-ends/the-profession-that-does-not-exist-symposium
1•NaOH•58m ago•0 comments

Apple's privacy invading tech is likely going mainstream

https://quickthoughts.ca/posts/self-owning-ai-tech/
5•quickthoughts•58m ago•3 comments

Robot Dogs Are a Security Nightmare [video]

https://www.youtube.com/watch?v=lA8WuXDXfcI
1•incomplete•1h ago•0 comments

A Job at OpenAI Became the Greatest Lottery Ticket of the AI Boom

https://www.wsj.com/tech/openai-employee-stock-sales-71ed10bd
3•JumpCrisscross•1h ago•0 comments

Brain motion is driven by mechanical coupling with the abdomen

https://www.nature.com/articles/s41593-026-02279-z
1•refibrillator•1h ago•0 comments

Stack of 500: 500 Production-Tested AI Prompts

https://stackkit.gumroad.com/l/lhxxik
1•ghostreg•1h ago•0 comments

A simple way to understand Bayes' Theorem

https://interestingstuff.xyz/explainers/a-simple-way-to-understand-bayes-theorem/
2•interestingstuf•1h ago•0 comments

Johnny Castaway Screensaver 1992 for macOS Tahoe. Runs as a Screensaver

https://github.com/tallPete/JohnnyCastaway
1•castawayjohnny•1h ago•1 comments