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

Gallup poll: GenZ AI adoption steady but skepticism on the rise

https://web.archive.org/web/20260410202758/https://news.gallup.com/poll/708224/gen-adoption-stead...
1•1vuio0pswjnm7•4m ago•1 comments

You should be able to SEE what your agents are doing. I created the solution

https://www.tarsy.dev/
1•leddo•5m ago•0 comments

Kids Are Discovering the Joys–and Pains–Of the Landline

https://www.wsj.com/lifestyle/kids-are-discovering-the-joysand-painsof-the-landline-f703d505
1•impish9208•5m ago•1 comments

Show HN: When Clocks Drift Apart

https://animeshchouhan.com/time/
1•animeshchouhan•5m ago•0 comments

We reverse-engineered Claude Code's billing system to fix overage charges

https://github.com/askalf/dario
1•askalf•6m ago•0 comments

Advanced Mac Substitute is an API-level reimplementation of 1980s-era Mac OS

https://www.v68k.org/advanced-mac-substitute/
1•zdw•9m ago•0 comments

What Is Hypernormalization?

https://adbusters.org/articles-coded/what-is-hypernormalization
1•burnt-resistor•10m ago•0 comments

Raising Carthaginian Armies, Part I: Finding Carthaginians

https://acoup.blog/2026/04/10/collections-raising-carthaginian-armies-part-i-finding-carthaginians/
1•gostsamo•10m ago•0 comments

Don't Be Evil

https://pluralistic.net/2026/04/11/obvious-terrible-ideas/
2•hn_acker•10m ago•0 comments

Preparing for My Own Funeral

https://chrisaustem.substack.com/p/preparing-for-my-own-funeral
1•putzdown•15m ago•0 comments

What tools do you use to visualize algorithms?

1•rjn32s•16m ago•0 comments

EU should regulate Big Tech, not banning kids from social media, Estonia says

https://www.politico.eu/article/europe-should-stand-up-to-big-tech-instead-of-imposing-social-med...
2•donohoe•18m ago•0 comments

The Structure of the Puma Computer System [pdf]

https://softwarepreservation.computerhistory.org/SETL/setl/doc/Grishman-Structure_of_Puma-1978.pdf
3•rbanffy•22m ago•0 comments

We replaced user accounts with Lightning payments for identity

https://blog.satsrail.com/payment-as-identity/
3•keymaker_p•22m ago•1 comments

Native Raspberry Pi 3B version of the Oberon System 3

https://github.com/rochus-keller/OberonSystem3Native/releases/tag/2026-04-10
3•HotGarbage•23m ago•0 comments

The Romance of the Gas Station Sign

https://www.theatlantic.com/ideas/2026/04/gas-prices-sign-driving/686759/
2•fortran77•23m ago•0 comments

False Memory Syndrome Foundation

https://en.wikipedia.org/wiki/False_Memory_Syndrome_Foundation
3•irthomasthomas•24m ago•0 comments

Online "Phreak Box" (Enhanced Blue Box)

https://phreaknet.org/bluebox/
3•bookofjoe•24m ago•0 comments

Hart Research March 8, 2024 opinion poll for NBC News: people hate AI

https://web.archive.org/web/20260310175721if_/https://s3.documentcloud.org/documents/27777984/nbc...
3•1vuio0pswjnm7•24m ago•1 comments

Show HN: Audit the browser for malicious extensions removed from Chrome Store

https://chromewebstore.google.com/detail/malext-sentry/bpohikihiogjgmebpnbgnloipjaddibe
2•toborrm9•25m ago•0 comments

Bulldog: A compiler for VLIW architectures [pdf]

https://www.cs.yale.edu/publications/techreports/tr364.pdf
5•rbanffy•26m ago•1 comments

Eagle Press alt software pyPowered to WordPress

https://github.com/CaptainFantasticVibeCoder/EaglePress
2•eagle10ne•28m ago•0 comments

The Lean Programming Language and Theorem Prover

https://leodemoura.github.io/static/etaps2026/
2•azhenley•28m ago•0 comments

Breathing life into my 13 year old Nexus 7 with Codex

https://opuslabs.substack.com/p/breathing-life-into-my-13-year-old
4•opuslabs•29m ago•0 comments

Tor Browser on Android leaks IP in desktop mode

4•shchess•29m ago•1 comments

Show HN: Animated ASCII art in pure SVG

https://github.com/syi0808/asciianimesvg
1•syi0808•31m ago•2 comments

Iran's Other Front: The War over the Internet

https://warontherocks.com/2026/04/irans-other-front-the-war-over-the-internet/
2•thinkingemote•31m ago•1 comments

The Obscure Relation of Appropriateness

https://vincentcarchidi.substack.com/p/the-obscure-relation-of-appropriateness
1•darccio•31m ago•0 comments

Quantization, LoRA, and the 8% Problem Benchmarking Local LLMs for Production AI

https://walsenburgtech.com/blog/quantization-lora-benchmarking-local-llms
3•cowartc•33m ago•0 comments

The System Turning Chinese Tech Companies into Military Suppliers

https://warontherocks.com/2026/04/the-hidden-system-turning-chinese-tech-companies-into-military-...
1•thinkingemote•33m ago•0 comments