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?

Amazon responds to data center backlash, says it no longer uses NDAs

https://techcrunch.com/2026/10/03/amazon-responds-to-data-center-backlash-says-it-no-longer-uses-...
1•noisysoc•49s ago•0 comments

Archiving the Oldest Webcam Feed

https://hackaday.com/2026/10/01/archiving-the-worlds-oldest-webcam-feed/
1•rdmuser•3m ago•0 comments

Forbidden Stories and UC Berkeley Journalism launch cross-border lab

https://journalism.berkeley.edu/announce-forbidden-stories-lab-uc-berkeley-journalism/
1•rdmuser•5m ago•1 comments

Weirdstuff Warehouse Reopens

https://weirdstuff.com/
2•bananaboy•7m ago•0 comments

Flying cell tower beams phone signal to Japan from 10 miles up

https://newatlas.com/aircraft/sceye-flying-cell-tower-beams-phone-signal-stratosphere/
1•geox•8m ago•0 comments

Pico CSS is no longer maintained (final release v2.1.1)

1•anydigital•13m ago•0 comments

Being asked to sanitise Wikipedia entries

https://www.rubenerd.au/being-asked-to-sanitise-wikipedia-entries/
2•rdmuser•13m ago•0 comments

VersionStory: Comparison and Redlining for AI native legal teams

https://www.versionstory.com
1•handfuloflight•15m ago•0 comments

100M homes could be powered by solar projects stuck in permitting

https://waitingforpower.com
1•bdgold•16m ago•0 comments

Show HN: Watch a neural net learn Clash Royale defense in the browser

https://itzik123.github.io/ClashRoyaleAi/lab/
1•itzikkatz•21m ago•0 comments

Show HN: Lines of C, Beats QOI

https://github.com/OzzyMitchell/tinycodec
1•ozzymitchell•32m ago•0 comments

Why AI task-level productivity doesn't translate to organizational throughput

https://pub.towardsai.net/the-hamster-paradox-36dd0d950568
1•younss•32m ago•0 comments

Oversight Has Capacity: Calibrating Agent Guards to a Subjective Fatiguing Human

https://arxiv.org/abs/2606.08919
1•Jimmc414•35m ago•0 comments

Testing 12 different Zigbee temperature/humidity sensors

https://smarthomescene.com/reviews/best-selling-zigbee-temperature-sensors-tested/
1•walrus01•39m ago•0 comments

Changelog to README: testing LLM update strategies

https://codecut.ai/readme-update-from-release-notes/
1•khuyentran1401•40m ago•0 comments

Meeting Buddy – A Cute Mascot That Parachutes in Before Your Meetings (macOS)

https://apps.apple.com/us/app/meeting-buddy-tiny-companion/id6811563656?mt=12
1•xuho•42m ago•0 comments

Gentle AI: AI Coding Ecosystem

https://gentle-ai.gentlemanprogramming.com/
1•OlivOnTech•50m ago•0 comments

Show HN: The Livability Map of Japan

https://kodawari.nimikko.co.jp/
1•asutekku•51m ago•1 comments

Organic Driven Development

https://github.com/stir084/organic-driven-development/blob/main/README.md
2•OlivOnTech•55m ago•0 comments

Why don't more developers "use the platform"?

https://nolanlawson.com/2026/10/03/why-dont-more-developers-use-the-platform/
28•vinhnx•59m ago•14 comments

What's the Future for Pure Math Research in the Age of AI? [Wolfram]

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

Show HN: SuperLocalMemory 4.0 "Governed Memory Operating System for AI Agents"

https://arxiv.org/abs/2608.08253
2•vpbhardwaj•1h ago•0 comments

Open ADS-B Telemetry and Flight Dynamics Registry for Flydubai FZ1073

https://evgeny1971.github.io/fz1073-investigation/
1•genvinnikov•1h ago•0 comments

Call It Evil: Understanding the Trump Era

https://wwnorton.co.uk/books/9781324131045-call-it-evil
2•hkhn•1h ago•0 comments

Show HN: LC3 VM in Golang

https://github.com/shraddhaag/toyvm
1•shraddhaag•1h ago•0 comments

The East Asian Fertility Disaster

https://twitter.com/MoreBirths/status/2097805266473324859
1•barry-cotter•1h ago•0 comments

Lego Machine Plays Tic-Tac-Toe

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

Pi-based coding agent with hard budget caps

https://kimchi.dev/
1•testycool•1h ago•1 comments

Write Your Own Virtual Machine

https://www.jmeiners.com/lc3-vm/
2•shraddhaag•1h ago•0 comments

Forms in HTML Tables

https://forum.palemoon.org/viewtopic.php?t=33817
2•mimasama•1h ago•0 comments