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?

Swiss glaciers suffer 'disastrous' year of ice loss, threatening water supplies

https://www.bbc.com/news/articles/c6n9w0ypjwl9o
2•layer8•52s ago•0 comments

Religious Scholars Met with Anthropic. What They Heard Stunned Them

https://www.nytimes.com/2026/09/29/us/anthropic-claude-morals-ai.html
2•sciurus•1m ago•0 comments

Running Windows 11 and Server 2025 with macOS Virtualization.framework

https://mustafaakin.dev/blog/windows-on-tart/
1•CSDude•3m ago•0 comments

An AI "mind-reading" tool can reconstruct what you're looking at based on a bra

https://www.technologyreview.com/2026/10/01/1145588/ai-mind-reading-reconstructs-what-youre-looki...
2•joozio•4m ago•0 comments

Listen to the Redditors

https://www.incredible.rs/blog/listen-to-the-redditors.html
2•theanonymousone•5m ago•0 comments

StreetComplete on iOS is now in public beta

https://github.com/streetcomplete/StreetComplete/issues/5421
1•Snowly•5m ago•0 comments

Children Who Died as Newborns Are Often Remembered as Family Members

https://onlinelibrary.wiley.com/doi/10.1111/apa.70341
2•tokai•7m ago•0 comments

Challenge accepted: not a single line of code written by hand

https://yvoschaap.com/weblog/challenge_accepted_not_a_single_line_of_code_written_by_hand
2•yvoschaap•8m ago•0 comments

Lessons for the 21st century from a book by 'Frankenstein' author Mary Shelley

https://worldsensorium.com/lessons-for-the-21st-century-from-a-200-year-old-book-by-frankenstein-...
2•dnetesn•11m ago•0 comments

The Space Between Two Fingers

https://blue-continuum.com/the-space-between-two-fingers
2•dnetesn•12m ago•0 comments

Value: A Verifiable Alignment Layer for Agentic a [pdf]

https://asteris.ai/pdf/verifiable-alignment-layer-for-agentic-ai.pdf
1•ai-mktg-ninja•13m ago•1 comments

Tech in cars can be used to snoop on you, Dutch spy chiefs warn

https://www.theguardian.com/technology/2026/oct/01/cars-smart-features-spy-gps-chinese-imports
2•vinni2•15m ago•0 comments

Show HN: Linux Subsystem Diagrams

1•mipsH•15m ago•0 comments

Ultra-processed food consumption and chronic diseases among 8,819,894 adults

https://fmch.bmj.com/content/14/Suppl_5/e003925
3•geox•16m ago•0 comments

The U.S. just made it much easier for retail investors to access private markets

https://www.cnbc.com/2026/10/01/private-credit-sec-retail-investors.html
1•cramer4next•16m ago•0 comments

The State of Java Desktop

https://sombriks.com.br/blog/0097-state-of-java-desktop/
1•theanonymousone•19m ago•0 comments

How many strings can you create per second?

https://lemire.me/blog/2026/09/25/how-many-strings-can-you-create-per-second/
1•sebg•19m ago•0 comments

The Global Market for Elite $30k Sheepdogs

https://www.bloomberg.com/news/features/2026-10-01/sheepdog-auction-in-skipton-sees-30-000-border...
2•helsinkiandrew•26m ago•2 comments

Aurora PostgreSQL supports direct querying of Apache Iceberg and Parquet data

https://aws.amazon.com/blogs/aws/amazon-aurora-postgresql-now-supports-direct-querying-of-apache-...
2•HatchedLake721•26m ago•1 comments

Codex Users Are Fleeing to Claude Code

https://www.vincentschmalbach.com/codex-users-are-fleeing-to-claude-code/
2•vincent_s•27m ago•1 comments

Extreme layout shift at Lufthansa's profile page

https://rado.bg/12-frames-of-ui-chaos-why-lufthansas-profile-page-suffer-from-extreme-cumulative-...
1•rado•28m ago•3 comments

Show HN: Autobox – Make your agents sandbox themselves

1•freakynit•31m ago•0 comments

First-class design systems on a Ryanair budget

https://statecraftapp.com/field-notes/first-class-on-a-ryanair-budget
1•domstatecraft•32m ago•0 comments

Show HN: Inbox Cleanup – get to inbox zero in Gmail

https://cleanup.upstream.do/
2•jtiret•35m ago•0 comments

AdGuard Home v1.0 Beta

https://adguard-dns.io/en/blog/adguard-home-v1-0-beta.html
1•ilreb•37m ago•0 comments

Show HN: An open-source LLM guardrail powered by Jev

https://github.com/gulbaki/jev-llm-guard
1•bakigul•37m ago•0 comments

Show HN: Dev tools that stay out of your way (JSON, Base64, JWT, etc.)

https://jsonformat.org/
1•stonewf•37m ago•0 comments

What Happened to Horses Is Happening to Us by CGP Grey (2014) [video]

https://www.youtube.com/watch?v=7Pq-S557XQU
1•axelfontaine•41m ago•0 comments

'Things may get ugly': Meta's new AI Muse is about to make the net more annoying

https://www.bbc.com/future/article/20260930-metas-new-ai-is-about-to-break-the-internet
5•ColinWright•42m ago•0 comments

Partial pooling as an answer to the reference class problem

https://sudippaul.substack.com/p/partial-pooling-as-an-answer-to-the
1•sebg•42m ago•0 comments