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?

Is the UK missing out on the solopreneur boom?

https://www.stripeeconomics.com/p/is-the-uk-missing-out-on-the-solopreneur
1•mellosouls•2m ago•0 comments

TS-2026-009: Insecure argument handling in Tailscale SSH permitted root access

https://tailscale.com/security-bulletins
2•jervant•3m ago•0 comments

The Logistics of Funding North Korean E-Wallets

https://www.38north.org/2026/07/the-logistics-of-funding-north-korean-e-wallets/
1•EA-3167•10m ago•0 comments

Show HN: Vehir – a platform built for AI agents: compiler, microkernel, CAS

https://github.com/grigoriitropin/vehir-platform
1•dewdgi•10m ago•0 comments

Read a book 703 words at a time

1•cliniborg•14m ago•0 comments

House Votes for Permanent Daylight Saving Time

https://www.nytimes.com/2026/07/14/us/politics/house-daylight-savings-time-sunshine-protection-ac...
1•donohoe•16m ago•0 comments

CoreWeave explores Wall Street playbook to hedge memory-chip price risk

https://www.reuters.com/world/ai-cloud-company-coreweave-explores-wall-street-playbook-hedge-memo...
1•ilreb•18m ago•0 comments

Texas factory cost $469M using old equipment, makes zero artillery shells

https://taskandpurpose.com/news/texas-ammo-factory-zero-shells/
3•ilamont•19m ago•0 comments

Talbot Green man sentenced for offences associated with swatting

https://www.tarianrocu.org.uk/news/talbot-green-man-sentenced-swatting-offences/
1•gnabgib•19m ago•0 comments

Microsoft emails Windows 10 holdouts: Fine, keep your old PC another year

https://www.theregister.com/os-platforms/2026/07/13/microsoft-emails-windows-10-holdouts-fine-kee...
2•Bender•20m ago•2 comments

Welsh Doxbin admin jailed for egging on swatters from behind a screen

https://www.theregister.com/security/2026/07/14/welsh-doxbin-admin-jailed-for-egging-on-swatters-...
2•Bender•22m ago•2 comments

Abraham Verghese's New Fable

https://www.nytimes.com/2023/05/02/books/review/covenant-of-water-abraham-verghese.html
1•Alien1Being•23m ago•1 comments

I Use HTML with Java

https://frequal.com/Flavour/book.html
2•TeaVMFan•24m ago•1 comments

Hands off our VPNs, privacy groups tell UK ministers

https://www.theregister.com/networks/2026/07/14/hands-off-our-vpns-privacy-groups-tell-uk-ministe...
2•Bender•24m ago•0 comments

I scanned 10 MCP servers – here's what agents can't know before connecting

https://github.com/davidnichols-ops/trustcard
1•davidnicholsops•25m ago•0 comments

Render.com Is Down

https://status.render.com
3•kaypee901•25m ago•0 comments

Rebase – weekly live gameshow for devs

https://rebase.tv/
2•thdxr•34m ago•0 comments

What If the Youth Crisis of Mental Health and Attention Never Happened?

https://grimoiremanor.substack.com/p/what-if-the-youth-crisis-of-mental
3•paulpauper•34m ago•0 comments

eBay is down this looks like a global incident 07142026

4•megamike•35m ago•2 comments

Opensourcing Multiplayer AI in Discord

https://bunnyandcloud.com/
1•mehdim•39m ago•0 comments

Ongoing changes to Android security patches due to AI vulnerability discovery

https://discuss.grapheneos.org/d/40286-ongoing-changes-to-android-security-patches-due-to-ai-vuln...
1•Cider9986•45m ago•0 comments

Meta's AI Glasses Will Activate the Camera Without Indicator Light

https://www.privacyguides.org/news/2026/07/13/the-next-version-of-metas-ai-glasses-will-activate-...
1•Cider9986•46m ago•0 comments

Open-sourced a dataset of companies and their detected tech stacks (CSV/JSON)

https://github.com/leadita/tech-stack-datasets
2•haynajjar•50m ago•0 comments

Library Catalog (Card Catalog)

https://en.wikipedia.org/wiki/Library_catalog
2•RetroTechie•51m ago•1 comments

Data centers have hiked electricity prices on the public by $23B

https://fortune.com/2026/07/14/data-centers-23-billion-electricity-bills/
12•measurablefunc•51m ago•2 comments

Beyond Nerva Nuclear Propulsion for Humanity's Expanse into the Cosmos

https://beyondnerva.wordpress.com/
1•pinewurst•55m ago•1 comments

Solving 20 Erdős Problems with 20 Codex Accounts Running in Parallel

https://www.starfleetmath.com/
2•colin7snyder•55m ago•0 comments

Vancouver PD website features Quick Escape button that wipes itself from history

https://vpd.ca/
22•LookAtThatBacon•55m ago•8 comments

Why Huge Pages matter for Postgres

https://clickhouse.com/blog/huge-pages-clickhouse-managed-postgres
3•thunderbong•1h ago•0 comments

Show HN: Digital De-Centralized Internship

https://lab.cedarridge.capital/
1•joey9prints•1h ago•0 comments