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?

Teen Reading Slumps to Worst This Century Due to Surge in Screen Time

https://www.usnews.com/news/world/articles/2026-09-08/teen-reading-slumps-to-worst-this-century-d...
1•jnord•36s ago•0 comments

Buckmaster raising alarms that AI corporations snooped on their research

https://social.coop/@cwebber/117236126658335889
1•doener•1m ago•0 comments

An anti-RAG AI memory in Rust that intentionally forgets and hallucinates

https://github.com/jbsalles/Selmem
1•Jibs79•1m ago•0 comments

Feds accuse China of 'systematic' distillation of U.S. AI models

https://cyberscoop.com/us-accuses-chinese-ai-companies-distillation/
2•jnord•1m ago•0 comments

Object storage is all you need

https://www.tigrisdata.com/blog/object-storage-all-need/
1•jpsaccount•2m ago•0 comments

Flock worker calls police on investigator filming public camera installation

https://www.atlantanewsfirst.com/2026/09/08/flock-worker-calls-police-anf-chief-investigator-film...
1•driverdan•2m ago•0 comments

Synology BeeStation Plus review: An easy-to-use NAS

https://www.zdnet.com/tech/synology-beestation-plus-8-tb-review-2/
1•CrankyBear•4m ago•0 comments

Michael Dell Passes Jeff Bezos in Billionaire Rankings

https://www.forbes.com/sites/antoniopequenoiv/2026/09/08/michael-dell-passes-jeff-bezos-in-billio...
1•MehrdadKhnzd•8m ago•0 comments

What Happens When You Lock Claude in a macOS Sandbox

https://holtwick.de/blog/bx
1•ingve•10m ago•0 comments

A Century-Old Physics Puzzle Solved: The Arrow of Time

1•luckyl•10m ago•2 comments

Plaintext todo lists from tree structures

https://jatabag.com/
1•solaire_oa•13m ago•0 comments

Performance Foundations of Parallel and Distributed Reasoning Language Models

https://arxiv.org/abs/2608.27046
1•matt_d•20m ago•0 comments

Sauron: A free and open source terminal development environment

https://github.com/mlolson/sauron/
1•LordHumungous•23m ago•1 comments

Show HN: Auto-Rig Web – Zero-click 3D humanoid rigging in a Web Worker

https://github.com/nff747/auto-rig-web
2•nff747•24m ago•0 comments

Ask HN: Is September 8th AGI Day?

2•rvz•25m ago•1 comments

Canvas Browser

https://canvas-browser.com
1•bookofjoe•26m ago•0 comments

LG TV shown scanning LAN for third-party phones and other devices

https://arstechnica.com/gadgets/2026/09/lg-tv-shown-capable-of-tracking-user-activity-even-when-o...
8•Bender•30m ago•0 comments

Show HN: I found a weird old startup's LaserDisc

https://www.youtube.com/watch?v=AXOoyxisEMg
1•markchristian•30m ago•0 comments

Q&A with Mark Zuckerberg on Muse, the data center backlash

https://sources.news/p/mark-zuckerberg-meta-muse-ai-podcast-interview
1•utiiiD•31m ago•0 comments

EXtreme Go Horse (XGH) Process

http://brunomb.com/xgh/
1•variety8675•31m ago•0 comments

Colliding the Sum Checksum (2019)

https://mcpherrin.ca/2019/11/23/sum-collisions.html
1•mooreds•32m ago•0 comments

What nobody tells you about writing agent skills

https://newsletter.posthog.com/p/what-nobody-tells-you-about-writing
2•AntonZ234•33m ago•0 comments

How to manage a growing fleet of AI agents with Latitude

https://latitude.so/blog/how-to-manage-a-fleet-of-agents-with-latitude
2•mooreds•33m ago•0 comments

The Lottery of Life

https://substack.com/@rutgerbregman/note/c-332235472
1•higginsniggins•34m ago•0 comments

MCP Client Registration: Dinner Party or Nightclub?

https://fusionauth.io/blog/cimd-vs-dcr
1•mooreds•35m ago•0 comments

Hacking Cable: AI in post-exploitation operations

https://palisaderesearch.org/blog/hacking-cable
1•syumei•37m ago•0 comments

Show HN: Spatial memory for document OCR pipelines (zero dependencies)

https://github.com/aws-samples/sample-textract-field-memory
1•avnban•39m ago•0 comments

Stop making swap partitions–use swap files instead

https://gist.github.com/joshenders/c4960cec9c63a7b7d68ffa9543356c43
1•jenders•40m ago•1 comments

The Solo-Dev Ship Checklist – a 10-item pre-launch checklist for indie devs

https://merlin-ship-checklist.surge.sh
2•clawforger_mthx•40m ago•0 comments

Solo.io Pushes Agentic AI Governance to the Desktop: Open-Source Agentdesktop

https://techstrong.ai/articles/solo-io-pushes-agentic-ai-governance-to-the-desktop-with-open-sour...
1•CrankyBear•40m ago•0 comments