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?

Also Liked

https://foryou.club/also-liked
2•big_toast•3m ago•1 comments

Study: Infrasound likely a key factor in alleged hauntings

https://arstechnica.com/science/2026/04/that-spooky-sensation-likely-due-to-rumbling-pipes-not-sp...
2•ndr42•5m ago•0 comments

Below the Fold: Dashboard of NY Times Coverage 2000-26

https://tedalcorn.github.io/nyt/#tab=home
2•apwheele•5m ago•0 comments

DevResolve embed a support widget on your dev docs

https://devresolve.ai/
2•EthanWayne•6m ago•1 comments

Evolution of the vertebrate retina by repurposing ancestral median eye (2026)

https://www.cell.com/current-biology/fulltext/S0960-9822(25)01676-8?_returnURL=https%3A%2F%2Flink...
3•Eridanus2•9m ago•0 comments

Enabling Multi-Region Data Systems at Notion

https://www.notion.com/blog/enabling-multi-region-data-systems-at-notion
2•tanelpoder•9m ago•0 comments

The pgvector Tooling Landscape in 2026

https://github.com/grove/pg-trickle/blob/main/blog/pgvector-tooling-landscape.md
3•grove•9m ago•0 comments

Microsoft and OpenAI's famed AGI agreement is dead

https://www.theverge.com/ai-artificial-intelligence/918981/openai-microsoft-renegotiate-contract
2•einszwei•10m ago•1 comments

Google prepares credit system for Gemini and new image tools

https://www.testingcatalog.com/google-prepares-credit-system-for-gemini-and-new-image-tools-2/
2•gmays•12m ago•0 comments

China car giant BYD says it can thrive without US

https://www.bbc.com/news/articles/cy01ele412yo
8•devonnull•14m ago•1 comments

Are Chinese AI Models Risky?

https://www.rickmanelius.com/p/are-chinese-ai-models-risky
2•mooreds•15m ago•1 comments

Signed: A Portfolio for Investors

https://zachholman.com/posts/signed-a-portfolio-for-investors
2•mooreds•15m ago•0 comments

The legal showdown between Elon Musk and Sam Altman begins today

https://www.cbsnews.com/news/elon-musk-openai-lawsuit-trial-sam-altman/
4•rolph•15m ago•0 comments

Jetbrains Annual Report 2026

https://www.jetbrains.com/lp/annualreport-2026/
3•saikatsg•16m ago•0 comments

You have to have an account to read IMDB reviews now

https://old.reddit.com/r/enshittification/comments/1srjamd/you_have_to_have_an_account_to_read_im...
4•Markoff•16m ago•0 comments

Show HN: Open-source control layer for AI safely access production

https://github.com/hoophq/hoop
2•luisfdias•17m ago•0 comments

Do-Nothing Software Development

https://alexwennerberg.com/blog/2026-04-24-donothing.html
2•speckx•17m ago•0 comments

What Will It Take to Get A.I. Out of Schools?

https://www.newyorker.com/culture/progress-report/what-will-it-take-to-get-ai-out-of-schools
5•HotGarbage•17m ago•0 comments

OpenAI's Revolutionary AI Gadget Is a Phone?

https://gizmodo.com/openai-revolutionary-ai-gadget-is-a-phone-a-stinkin-phone-2000751129
2•dlx•18m ago•0 comments

Don't Stop Me from Pasting Passwords

https://ciamweekly.substack.com/p/dont-stop-me-from-pasting-passwords
2•mooreds•18m ago•0 comments

Functional Programming in Lean

https://leanprover.github.io/functional_programming_in_lean/
2•gurjeet•18m ago•0 comments

Sampling-Based NDV Estimation in Iceberg Tables

https://eng-floe.github.io/floecat/2026/04/20/estimating-ndv.html
2•tanelpoder•19m ago•0 comments

My Stratum-0 Atomic Clock

https://coverclock.blogspot.com/2017/05/my-stratum-0-atomic-clock_9.html
2•g0xA52A2A•20m ago•0 comments

Reported losses to scams on social media eight times higher than in 2020

https://www.ftc.gov/news-events/data-visualizations/data-spotlight/2026/04/reported-losses-scams-...
5•pseudolus•21m ago•0 comments

Tera – A Compiler‑Native UI Framework with Shared Runtime/AI Context

https://github.com/terajs/terajs
2•thecodergabe•23m ago•0 comments

Claude prompt-cache writes may not be immediately visible to the next request

https://github.com/anthropics/anthropic-sdk-python/issues/1451
2•myyke•23m ago•0 comments

Out-of-Place Artifact

https://en.wikipedia.org/wiki/Out-of-place_artifact
2•thebigship•23m ago•0 comments

Show HN: A tool after debugging too many RabbitMQ DLQ issues

https://queueforgehq.com
2•namrahov•25m ago•0 comments

Why I'm Adding an AI Disclosure to My Site

https://www.plagiarismtoday.com/2026/04/13/why-im-adding-an-ai-disclosure-to-my-site/
3•speckx•25m ago•0 comments

What Happens When A.I. Runs a Store in San Francisco?

https://www.nytimes.com/2026/04/21/us/san-francisco-store-managed-ai-agent.html
2•gmays•26m ago•0 comments