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

A Man Who Wanted to Believe in Life on Mars

https://newrepublic.com/article/202815/martians-book-review-man-believe-life-mars
1•c420•2m ago•0 comments

Evaluating Effect Size in Psychological Research: Sense and Nonsense

https://journals.sagepub.com/doi/10.1177/2515245919847202
1•Anon84•2m ago•0 comments

PS5 now costs less than 64GB of DDR5 memory. RAM jumps to $600 due to shortage

https://www.tomshardware.com/pc-components/ddr5/64gb-of-ddr5-memory-now-costs-more-than-an-entire...
1•speckx•2m ago•0 comments

Show HN: ZDTP Chess – Multi-dimensional analysis using zero divisor algebras

https://github.com/pchavez2029/zdtp-chess/tree/main/zdtp_chess_mcp
1•pchavez2025•3m ago•0 comments

The GPT Awakening – Official Prophecy Trailer (2025) [video]

https://www.youtube.com/watch?v=Sl3a4HjM5Zg
1•nuevita70•4m ago•0 comments

The unpowered SSDs in your drawer are slowly losing your data

https://www.xda-developers.com/your-unpowered-ssd-is-slowly-losing-your-data/
3•amichail•6m ago•0 comments

How do we keep apps maintained on Flathub? (or building a more respectful App S

https://tim.siosm.fr/blog/2025/11/24/building-better-app-store-flathub/
1•todsacerdoti•6m ago•0 comments

Gramma, a Galápagos Tortoise at the San Diego Zoo, Dies at About 141

https://www.nytimes.com/2025/11/24/science/gramma-galapagos-tortoise-san-diego-zoo-dies.html
1•quapster•6m ago•0 comments

Old-school rotary phone dials into online meetings hangs up when slam it down

https://www.theregister.com/2025/11/24/rotary_phone_online_meetings/
1•Bender•7m ago•0 comments

A.I. is a printed birthday card train to Paris

https://filiph.net/text/ai-is-a-printed-birthday-card-train-to-paris.html
1•markdog12•8m ago•0 comments

Claude Advanced Tool Use

https://www.anthropic.com/engineering/advanced-tool-use
2•lebovic•9m ago•0 comments

Riding Uphill: The Tariff Squeeze on America's Bike Scene

https://micromobility.io/news/riding-uphill-the-tariff-squeeze-on-americas-bike-scene
1•prabinjoel•10m ago•0 comments

Zapier Security Incident Packages and Zapier Developers

https://status.zapier.com/incidents/01KAV9DDHMYT7R6MFHSB8C09E3
2•Kerrick•10m ago•1 comments

Signal Secure Backups now available on iOS

https://twitter.com/signalapp/status/1993018186690871409
1•raybb•11m ago•0 comments

Bringing organ-scale cryopreservation into existence (Hunter Davis, #6) [video]

https://www.owlposting.com/p/bringing-organ-scale-cryopreservation
1•crescit_eundo•12m ago•0 comments

North Carolina Town First to Deploy Defibrillator Drones During 911 Emergencies

https://gizmodo.com/north-carolina-town-first-in-u-s-to-deploy-defibrillator-drones-during-actual...
2•speckx•13m ago•0 comments

AlmaLinux 10.1 Released – Complete with Btrfs Support

https://www.phoronix.com/news/AlmaLinux-10.1-Released
2•Bender•13m ago•0 comments

Mind-altering 'brain weapons' no longer only science fiction, say researchers

https://www.theguardian.com/world/2025/nov/22/mind-altering-brain-weapons-no-longer-only-science-...
3•thinkingemote•15m ago•0 comments

Synthetic boundaries for enhanced performance in densified thick electrodes

https://www.nature.com/articles/s41467-025-65257-2
1•PaulHoule•15m ago•0 comments

Scientists issue ominous warning over mind-altering 'brain weapons'

https://www.dailymail.co.uk/sciencetech/article-15320293/Scientists-warning-mind-altering-weapons...
2•Bender•16m ago•0 comments

System Card: Claude Opus 4.5 [pdf]

https://assets.anthropic.com/m/64823ba7485345a7/Claude-Opus-4-5-System-Card.pdf
2•alvis•16m ago•0 comments

Association of Screen Time with ADHD

https://www.nature.com/articles/s41398-025-03672-1
1•wjb3•16m ago•0 comments

WinBoat v0.9.0 Released

https://github.com/TibixDev/winboat/releases/tag/v0.9.0
1•PhilippGille•16m ago•0 comments

Rebble in Your Own World

https://rebble.io/2025/11/24/rebble-in-your-own-world.html
1•osculum•17m ago•0 comments

Streamline Structured and Unstructured Data Flows from Postgres with AI

https://cocoindex.io/blogs/postgres-source
1•badmonster•17m ago•0 comments

Olfactory White

https://en.wikipedia.org/wiki/Olfactory_white
2•sans_souse•17m ago•0 comments

Yes, the Universe Can Expand Faster Than Light

https://www.universetoday.com/articles/yes-the-universe-can-expand-faster-than-light
1•amichail•18m ago•0 comments

Former soldier pleads guilty to attempting to share military secrets with China

https://www.justice.gov/opa/pr/former-jblm-soldier-pleads-guilty-attempting-share-military-secret...
1•737min•20m ago•0 comments

Show HN: Open-source medical data(bloodwork, genetics, etc.) chat agent

https://github.com/ianrowan/OpenMed
1•imr_med•20m ago•0 comments

The Experience Machine

https://unpublishablepapers.substack.com/p/the-experience-machine
1•benrostike•21m ago•0 comments