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

TypeScript iMessage API that accepts location sharing

https://twitter.com/photon_hq/status/2009336362827395493
1•RyanZhuuuu•1m ago•0 comments

Reinforcement learning for humans – Quiz your understanding

https://cramsandwich.com
1•filepod•4m ago•0 comments

Building user interactivity on your website without a back end

https://nekomimi.leaflet.pub/3m6pcklmvt222
1•mefengl•6m ago•0 comments

Astrological CPU Scheduler

https://github.com/zampierilucas/scx_horoscope
1•fratellobigio•7m ago•0 comments

Show HN: Cuttlefish – 40ns causal consistency using algebra instead of consensus

https://github.com/abokhalill/cuttlefish
1•yousef06•7m ago•0 comments

Sheetsandbox: Use Google Sheets as a Database for MVPs

https://sheetsandbox.com/
2•aravindkumarv•9m ago•1 comments

Can AI companies become profitable?

https://epoch.ai/gradient-updates/can-ai-companies-become-profitable
3•todsacerdoti•12m ago•1 comments

Glymphatic system clears amyloid beta and tau from brain to plasma in humans

https://www.nature.com/articles/s41467-026-68374-8
1•jmount•12m ago•0 comments

Everyone Has Email. Nobody Uses It Right

https://kaplich.me/essays/email
1•skaplich•16m ago•1 comments

Fault Tolerant Linux

https://popcornlinux.org/fault-tolerant-linux/
1•doener•18m ago•0 comments

Live Lightning Map

https://map.blitzortung.org
1•kristianpaul•19m ago•0 comments

Providing 99.999% of Availability for Unmatched Server Uptime

https://www.penguinsolutions.com/en-us/products/stratus-ftserver
1•doener•21m ago•0 comments

Landholder vs. Stockholder

https://aeon.co/essays/why-hume-is-better-at-explaining-modern-capitalism-than-marx
2•bryanrasmussen•23m ago•0 comments

We can't send mail farther than 500 miles (2002)

https://web.mit.edu/jemorris/humor/500-miles
12•giancarlostoro•26m ago•3 comments

ESR on LLM Coding

https://twitter.com/esrtweet/status/2016713740658344301
1•tiahura•26m ago•0 comments

FOSDEM 2012 Schedule Chart

https://rgbcu.be/dump/fosdem/2012
1•RGBCube•28m ago•0 comments

AI Prompt to Write in Minimalist Style of Ernest Hemingway

https://tools.eq4c.com/ai-prompts/ai-prompt-to-write-in-minimalist-style-of-ernest-hemingway/
2•eq4c•28m ago•0 comments

Show HN: The Unix compress algorithm with approximate matches

1•keepamovin•29m ago•0 comments

Stratus VOS

https://en.wikipedia.org/wiki/Stratus_VOS
1•doener•29m ago•0 comments

Was serving GPT-5 profitable?

https://twitter.com/i/status/2016652644560097377
1•gradus_ad•35m ago•0 comments

Breaking the Spell of Vibe Coding

https://www.fast.ai/posts/2026-01-28-dark-flow/
2•gmays•36m ago•0 comments

The reason cancer immunotherapy often fails

https://www.sciencedaily.com/releases/2026/01/260128075323.htm
2•Jimmc414•38m ago•0 comments

Explore Cartoon Characters

https://acartooncharacters.com/
1•jokera•38m ago•0 comments

Putting Gemini to Work in Chrome

https://blog.google/products-and-platforms/products/chrome/gemini-3-auto-browse/
2•diwank•41m ago•0 comments

37signals Isn't Smarter Than You, but They Are Different

https://www.nateberkopec.com/blog/37signals-is-not-smarter-than-you/
1•doppp•41m ago•0 comments

Wasmer 7.0

https://github.com/wasmerio/wasmer/releases/tag/v7.0.0
3•shscs911•43m ago•0 comments

I built a tool that turns brain dumps into Mermaid.js flowcharts

https://chaosclarity.app/
2•marwanghazi•51m ago•1 comments

Clawdbot's Peter Steinberger Makes First Public Appearance Since Launch

https://www.youtube.com/watch?v=qyjTpzIAEkA
2•doppp•51m ago•0 comments

[dupe] Tesla Kills Models S and X

https://gizmodo.com/tesla-kills-models-s-and-x-2000715273
1•andsoitis•55m ago•2 comments

Another Bay Area resident dies from toxic wild mushrooms

https://www.kron4.com/news/bay-area/another-bay-area-resident-dies-from-toxic-wild-mushrooms/
1•tokyobreakfast•55m ago•0 comments