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?

Browser game about movie guessing

https://frameguesser.vercel.app/
1•mmschreiber•5m ago•0 comments

Nike Launches Sneaker Line with Russian Designer Who Backed Crimea Annexation

https://united24media.com/world/nike-launches-sneaker-line-with-russian-designer-who-backed-crime...
3•fodmap•7m ago•0 comments

Graphtatui: In terminal graph explorer made with ratatui

https://github.com/Sok205/graphtatui
2•sok205•8m ago•0 comments

Yield Curves and Volatility Surfaces Are Built in Modern Finance

https://medium.com/@DolphinDB_Inc/the-hidden-foundation-of-pricing-and-risk-how-ficc-curves-and-s...
2•Polly_Liu•10m ago•0 comments

CPMpy: Constraint Programming and Modeling library in Python, based on NumPy

https://github.com/CPMpy/cpmpy
1•tosh•11m ago•0 comments

Why Digital Twins Need Low-Latency Data Processing

https://medium.com/@DolphinDB_Inc/real-time-decision-making-how-ai-and-low-latency-computing-are-...
2•CrazyTomato•11m ago•0 comments

Githipedia – The Wiki for GitHub

https://github.com/Vendetaaaa/Githipedia
1•Vendeta•12m ago•1 comments

Show HN: I wrote a C++ ray tracer from scratch without AI

https://github.com/themartiano/luz
2•martiano•12m ago•1 comments

Ask HN: How do you handle browser tab overload?

1•formit34•13m ago•1 comments

Coversubstack-Zagreus=Whiterabbit.flexe

https://substack.com/@rootedinthought/note/c-276218913
1•dcmexpunksolar•17m ago•0 comments

LibAgar – Cross-platform GUI written in C

https://libagar.org/
2•0x0203•18m ago•0 comments

What are you looking for when reviewing LLM generated code?

2•gnunicorn•19m ago•1 comments

Ask HN: Developers, are you being forced into prompt-only engineering?

3•zerr•20m ago•0 comments

Fear about young adults' maturity is just a way of trying to control them (2023)

https://www.newstatesman.com/comment/2023/06/fear-about-young-adults-maturity-is-just-a-way-of-tr...
1•frereubu•21m ago•1 comments

Show HN: ELDC – Natural language identification, faster than FastText and CLD2

https://github.com/nitotm/eldc
2•nitotm•22m ago•0 comments

Anthropic flies staff to D.C. to clean up White House fight

https://www.axios.com/2026/06/14/anthropic-white-house-mythos-fable
3•dstala•23m ago•0 comments

Trailblazing investigative reporter Roger Cook dies

https://news.sky.com/story/trailblazing-investigative-reporter-roger-cook-dies-13554262
1•austinallegro•26m ago•0 comments

Searching for Guy Debord (2003)

https://brooklynrail.org/2003/10/express/searching-for-guy-debord/
1•robtherobber•26m ago•0 comments

Ask HN: Did you try Claude's "Fable 5" model before it was pulled?

3•aniokono•26m ago•1 comments

How to Think about Parallel Programming: Not (2010)

https://github.com/matthiasn/talk-transcripts/blob/master/Steele_Guy/ParallelProg.md
1•tosh•26m ago•0 comments

How Contaminants in drinking water are regulated by the EPA and states

https://www.ewg.org/news-insights/news/2025/03/how-contaminants-drinking-water-are-regulated-epa-...
2•num42•27m ago•0 comments

Complexity Models

https://en.algorithmica.org/hpc/complexity/
1•tosh•28m ago•0 comments

Tell HN: Claude is completely unusable for biology

3•Protostome•29m ago•0 comments

Translation Drift in Web Novels: Answering Vague Questions in the Moment

http://blog.merrilin.ai/engineering/2026/translation-drift/
1•stonecharioteer•29m ago•0 comments

Multistack 1.0 – Lightweight TUI for orchestrating coding agents

https://crates.io/crates/multistack/1.0.0#1.0.0
1•gidellav•32m ago•0 comments

Zerostack 1.5 – Lightweight Unix-inspired coding agent

https://crates.io/crates/zerostack/1.5.0#1.5.0
1•gidellav•32m ago•0 comments

Show HN: VibeKnow – content-to-video agent using Remotion

https://vibeknow.ai/
1•xutangly•34m ago•0 comments

Donate Agent Traces

https://huggingface.co/spaces/trace-commons/web
2•simon-inta•34m ago•0 comments

Magic Buffers and io_uring Registered Buffers

https://www.mindfruit.co.uk/posts/2025/10/magic-buffers-and-io-uring-write-fixed/
2•tosh•36m ago•0 comments

Alt-Tab Creates Background Service After Uninstall

https://github.com/lwouis/alt-tab-macos/issues/5758
1•0x616e677279•39m ago•0 comments