frontpage.
newsnewestaskshowjobs

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?

The Assumption About Farm Automation That May Be Wrong

https://www.ucdavis.edu/food/news/assumption-about-farm-automation-may-be-wrong
1•geox•47s ago•0 comments

Contained: Oct 21, 2026 LiteLLM release v1.107.0 Compromised

https://docs.litellm.ai/blog/security-incident-oct-21-2026
1•gmays•1m ago•0 comments

Space Debris Found Twice Within Days Amid 'Growing Casualty Risk'

https://www.nytimes.com/2026/10/22/world/asia/space-debris-indonesia-minnesota.html
1•mykowebhn•1m ago•1 comments

SleeperWidget: Ad-Driven Installs Activate Hidden Browser Extension Behavior

https://microsoftedge.github.io/edgevr/posts/SleeperWidget-How-Ad-Driven-Installs-Activate-Hidden...
1•sdkhere•1m ago•0 comments

Traceglass

https://github.com/omarbabu/traceglass
1•omarbabu•2m ago•0 comments

KeePassXC 2.8.0

https://keepassxc.org/blog/2026-10-21-2.8.0-released/
1•acossta•2m ago•0 comments

8,300 Kilometres of Glass

https://trnvll.com/writing/8300-kilometres-of-glass/
1•trnvll•2m ago•1 comments

BioWare's Discriminatory Hiring Practices

https://twitter.com/SmashJT/status/2113366696564301832
1•bigwheels•3m ago•0 comments

The Fable of the Dragon-Tyrant

https://nickbostrom.com/papers/the-fable-of-the-dragon-tyrant/
1•skogstokig•5m ago•0 comments

Get MP4 Video Duration Without Downloading the Entire File

https://jsdev.space/snippets/mp4-video-duration/
1•eustoria•5m ago•0 comments

How to install and operate the most minimalistic CMS

https://dbmx.net/bikibikibob/tutorial-en/
1•eustoria•6m ago•0 comments

NYT Games Hints and Secrets

https://hadarg.com/blog/nyt-games/
1•hadarg98•8m ago•0 comments

Taking 'execute logging' a bit too seriously – CVE-2026-88771

https://cert.europa.eu/blog/taking-execute-logging-a-bit-too-literally-cve-2026-88771
1•eustoria•9m ago•0 comments

Show HN: Combining Space Invaders and Classic Literature and ASCII

https://txtinvaders.com/
1•armcat•12m ago•0 comments

Org Social now has an Android app

https://activity.andros.dev/@andros/statuses/01M5F2Q5013Q1MGPGV55ZYSP85
1•andros•14m ago•0 comments

An archive of Omni magazine (1978-1995)

https://archive.org/details/omni-archive
1•CharlesW•15m ago•0 comments

AffectUI

https://www.affectui.com/
2•handfuloflight•16m ago•0 comments

How to Run Turing-Complete Malware in PyTorch's Backward Pass

https://elonlit.com/scrivings/how-to-run-turing-complete-malware-in-pytorchs-backward-pass/
1•simonpure•16m ago•0 comments

Portal Texas Used to 'Rubber Stamp' Data Centers Down After 404 Media Reporting

https://www.404media.co/texas-commission-on-environmental-quality-portal-down/
2•cdrnsf•16m ago•0 comments

Show HN: My vibecoded game got a glow up

https://tiberava.online
5•cayodister•17m ago•0 comments

Anthropic's non-existant customer support

1•ChrisMitSchmiss•18m ago•2 comments

'M*A*S*H', 'Top Gun' actor passes away at 93

https://ktla.com/entertainment/mash-top-gun-actor-passes-away-at-93/
1•Bender•20m ago•1 comments

We're about to learn that all the code written in the past 20 years was all slop

https://twitter.com/thomasunise/status/2113306001835217016
12•wearehumxn•21m ago•5 comments

Mass Effect: Universe Trailer

https://www.reddit.com/r/masseffect/comments/1xclmpu/mass_effect_universe_trailer/
2•CharlesW•21m ago•0 comments

Some Primates Become Cautious of Germs in the Wake of a Viral Outbreak

https://today.ucsd.edu/story/like-humans-some-primates-become-cautious-of-germs-in-the-wake-of-a-...
2•gmays•21m ago•0 comments

New Device 'Bricks' Your Phone When You Enter Your Bedroom

https://www.cnet.com/health/sleep/new-device-bricks-phone-when-enter-bedroom/
2•speckx•22m ago•0 comments

Linus Torvalds Eliminates Unsafe __get_user() __put_user() Functions In 7.4

https://www.phoronix.com/news/Linus-Kills-Get-Put-User-Linux
1•Bender•22m ago•0 comments

Technical details of php2shell discovered 2 years ago

https://tolmo.com/blog/faster-than-anyone-can-fix-them/
2•smurda•23m ago•0 comments

Starbound Labs – Building drone light show hardware and software together

https://www.starboundlabs.com/
1•tblane•24m ago•0 comments

Backdoored robot tries its hand at finger chopping and cat cooking

https://www.theregister.com/ai-and-ml/2026/10/22/backdoored-robot-tries-its-hand-at-finger-choppi...
2•Bender•24m ago•0 comments