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?

Formally verifying Erlang/Elixir programs with embedded Lean proofs

https://dashbit.co/blog/formally-verifying-erlang-elixir-programs-with-lean
2•Brajeshwar•44s ago•0 comments

Roomette – run a Linux guest inside a Go process

https://github.com/adrianliechti/roomette
1•cblaettl•45s ago•0 comments

We Are All Playable Characters

https://asteriskmag.com/issues/16/we-are-all-playable-characters
1•surprisetalk•1m ago•0 comments

Odin December 2026 Newsletter

https://odin-lang.org/news/newsletter-2026-12/
1•ksec•4m ago•0 comments

Don't Trust People Who Talk Like This

https://www.honest-broker.com/p/dont-trust-people-who-talk-like-this
1•baud147258•4m ago•0 comments

My Rules for Public Speaking

https://www.honest-broker.com/p/my-10-rules-for-public-speaking-559
1•baud147258•4m ago•0 comments

Linear Types Assume Convergence

https://blog.yoshuawuyts.com/linear-types-assume-convergence/
1•emschwartz•5m ago•0 comments

Hare 0.26.3 Released

https://harelang.org/blog/2026-12-01-hare-0.26.3-released/
1•birdculture•5m ago•0 comments

Novel Experiments Expand the Hunt for 'Ultralight' Dark Matter

https://www.quantamagazine.org/novel-experiments-expand-the-hunt-for-ultralight-dark-matter-20261...
1•joexov•7m ago•0 comments

EVs outsell petrol cars in EU over a full year for the first time

https://www.theguardian.com/environment/2026/dec/02/evs-outsell-petrol-cars-eu-full-year-first-time
2•vrganj•7m ago•0 comments

Show HN: DevCatz – open-source local dev environment for Mac, Windows and Linux

https://github.com/catzoidhub/DevCatz
1•MrCatz•8m ago•0 comments

Why Gen Z is willing to pay good money for an old iPhone 5c

https://www.engadget.com/2329588/why-gen-z-is-willing-to-pay-good-money-for-an-old-iphone-5c/
1•ksec•8m ago•0 comments

How Warren Buffett’s Annual Meeting Turned Into the Woodstock of Capitalism

https://www.wsj.com/finance/how-warren-buffetts-annual-meeting-turned-into-the-woodstock-of-capit...
1•thm•9m ago•0 comments

Who Used A.I. Agents to Shop over Black Friday? Hardly Anyone

https://www.nytimes.com/2026-12-01/technology/ai-agents-black-friday.html
1•emrekayalar•11m ago•0 comments

AIGov Core – Try a local Docker demo of an audit ledger and release gate

https://github.com/AIGovDev/aigov-core
1•monikadvorackov•11m ago•0 comments

Why is CellGemma a big deal? (AI generated)

https://charlesazam.com/blog/cellgemma/
1•couAUIA•12m ago•1 comments

Show HN: Playing Ranked Rocket League on Apple Silicon (Obelisk)

https://github.com/Zagrios/Obelisk
1•Zagrios•14m ago•0 comments

The Part About the Machines

https://thepointmag.com/examined-life/the-part-about-the-machines/
2•internet_points•14m ago•0 comments

Beyond Hamming: Graywalk and XOR-Based Metric Spaces

https://lumramabaja.com/posts/beyond-hamming-graywalk-and-xor-based-metric-spaces/
1•irwt•14m ago•0 comments

Show HN: SAFi, OS sandboxing and deterministic policy gating for local AI agents

https://github.com/jnamaya/SAFi
1•jnamaya•17m ago•0 comments

Show HN: Create a system prompt tailored for how your mind works

https://writtenfor.me
1•mox-1•19m ago•0 comments

Show HN: LLM API prices, each with the quote, page and date it was read from

https://aisignalhq.com/api-pricing/
1•alvarolucero•20m ago•0 comments

AI Is looking to hack you don't be the victim

https://repocheck.app/
1•PatsTools•20m ago•1 comments

RISC isn't about instruction set cleanness (size or redundancy)

https://wareya.wordpress.com/2026/04/05/opinion-rant-risc-isnt-about-instruction-set-size/
1•arvyy•21m ago•1 comments

Ofcom announces UK hit 90% Gigabit availability in July 2026

https://www.thinkbroadband.com/news/ofcom-announces-uk-hit-90-gigabit-availability-in-july-2026
3•ksec•21m ago•0 comments

I regret buying the Onyx BOOX Color 7 Gen 2

https://gardinerbryant.com/i-regret-buying-the-onyx-boox-color-7-gen-2/
1•surprisetalk•21m ago•0 comments

Naval Architecture (2021)

https://ciechanow.ski/naval-architecture/
2•AlenaSato•23m ago•0 comments

Show HN: MCP Inspector Web, the MCP inspector that is a link

https://github.com/JM-Lab/mcp-inspector-web
1•hjm1980•24m ago•0 comments

Interwebs Intermaps – an art-history-style map of web design, 1991–2026

https://interwebs-intermaps.com/
1•ceciliafurlan•24m ago•0 comments

Chrome patches 21 critical vulnerabilities, Claude found 10

https://www.techzine.eu/news/security/146229/chrome-patches-21-critical-vulnerabilities-claude-fo...
2•choult•24m ago•0 comments