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?

Tungsten Mine Predicts Major Wars. It's Opening Again

https://www.bloomberg.com/graphics/2026-opinion-australia-tungsten-mine-us-war-defense-china/
1•mooreds•36s ago•0 comments

Show HN: Pglayers – PostgreSQL extensions as stackable Docker layers

https://github.com/pglayers/pglayers
1•iemejia•1m ago•0 comments

Cider 2.0 Is Brewing

https://metaredux.com/posts/2026/06/30/cider-2-0-is-brewing.html
1•eigenhombre•2m ago•0 comments

Self-Hosted GitHub Actions Runners on Lambda MicroVMs

https://github.com/mkdev-me/terraform-aws-github-runner-lambda-microvms/tree/main
1•fodoj•3m ago•1 comments

The Decadent Double Dealer

https://64parishes.org/decadent-double-dealer
1•jruohonen•3m ago•0 comments

Ask HN: Developers and Builders, what have you shipped this week?

1•enlightpixel•3m ago•0 comments

Google kills Tenor GIF API, forcing changes at X, Discord, and more

https://arstechnica.com/gadgets/2026/06/google-kills-tenor-gif-api-forcing-changes-at-x-discord-a...
2•scommab•4m ago•0 comments

Over 900 Oracle E-Business instances exposed to ongoing attacks

https://www.bleepingcomputer.com/news/security/over-900-oracle-e-business-instances-exposed-to-on...
3•Brajeshwar•5m ago•0 comments

Show HN: A Simple Investment Portfolio Tracker

https://zenvesto.com/
3•zenvesto•8m ago•0 comments

Ensuring fairness and safety: €3 customs duty for low-value parcels

https://commission.europa.eu/news-and-media/news/ensuring-fairness-and-safety-eur3-customs-duty-l...
2•robin_reala•8m ago•0 comments

Buyers Disappointed as eBay Pulls Gift Cards Again

https://www.ecommercebytes.com/C/blog/blog.pl?/pl/2026/6/1782874791.html
1•ilamont•9m ago•0 comments

When anything is possible, how do you decide what to create?

https://digitalseams.com/blog/making-things-interview-series
1•bobbiechen•9m ago•0 comments

Show HN: AI Score Chrome extension, measure how AI agents read your docs site

https://chromewebstore.google.com/detail/jamdesk-ai-score/mhihkkgpcbmapmojnakhjfhjmiagkhlj
2•gbourne•10m ago•0 comments

Developers React to AI-Scented Blog Posts

https://writethatblog.substack.com/p/dev-reaction-to-ai-blog-posts
1•robin_reala•12m ago•0 comments

Verd: AI trip-plan checks for visa, connection, and border risks

https://verd.nanocorp.app
2•verdlaunch•13m ago•0 comments

Building Docker images 7x Faster with Clipper

https://clipper.dev/blog/buildkit-profile
1•a_t48•13m ago•1 comments

Show HN: Sidedoor – Paste any job, find who in your network can refer you

https://happenstance.ai/sidedoor
3•welshpony•14m ago•0 comments

PlayStation will end physical disc production for new games in 2028

https://www.cnbc.com/2026/07/01/sony-playstation-physical-disc-production-2028.html
2•shinryudbz•16m ago•0 comments

Using ChatGPT is not bad for the environment

https://blog.andymasley.com/p/a-short-summary-of-my-argument-that
4•ck2•18m ago•1 comments

Show HN: HN Keyboard Boost – Minimal Keyboard Navigation for Hacker News

https://addons.mozilla.org/en-US/firefox/addon/hn-keyboard-boost/
1•jessesoo•19m ago•0 comments

Sam Altman: This is how we can make AI safe for everyone

https://www.ft.com/content/0c2e1077-f658-4b3d-9040-602615c961ca
1•bifftastic•21m ago•0 comments

Inside the Egg Price-Fixing Scandal That Spiked American Grocery Bills

https://www.wsj.com/business/retail/inside-the-egg-price-fixing-scandal-that-spiked-american-groc...
2•impish9208•22m ago•1 comments

Ella: Deterministic compute engine for ultra‑low‑latency systems

https://github.com/steforsyth5439-ai/ELLA-whitepaper
1•ste5439•23m ago•0 comments

HT-ML.app – Deploy HTML Artifacts from Claude Code and Codex

https://ht-ml.app/
1•nsmith22•24m ago•1 comments

The Repository Knows Why

https://community.ibm.com/community/user/blogs/frank-de-gilio/2026/05/28/the-repository-knows-why
1•rbanffy•24m ago•0 comments

Taming Production Database Migrations

https://www.lirbank.com/taming-production-database-migrations
5•andrelandgraf•26m ago•1 comments

Jj jj jj jj jj

https://caiustheory.com/jj-jj-jj-jj-jj/
2•birdculture•27m ago•1 comments

Florida Is Executing Prisoners at a Record Pace

https://www.propublica.org/article/florida-death-penalty-executions-ron-desantis
10•petethomas•27m ago•1 comments

Is there a "is fable up tracker" or notification hook?

1•217•28m ago•1 comments

Palantir vs. Republik [Swiss News Magazine]

https://www.republik.ch/2026/06/13/palantir-gegen-die-republik-das-urteil
1•Arodex•29m ago•1 comments