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?

Cognition as least action: the Physarum Lagrangian

https://royalsocietypublishing.org/rsif/article/23/244/20251265/484274/Cognition-as-least-action-...
1•the-mitr•29s ago•0 comments

Google MCP servers, CLI, standardized usage tiers, and admin policies

https://workspaceupdates.googleblog.com/2026/11/mcp-servers-cli-standardized-usage-tiers-now-avai...
1•cebert•2m ago•0 comments

A Closer Look at Claude's Mac "Apps"

https://www.macstories.net/stories/a-closer-look-at-claudes-mac-apps/
1•CharlesW•2m ago•0 comments

The Naturalist's Library

https://www.c82.net/naturalists-library/
1•rafael859•3m ago•0 comments

Proving a Fixed Upper Bound on Jensen's Affairs

https://bitbanter.com/posts/2026-11-25/proving-a-fixed-upper-bound-on-jensens-affairs/
4•gmays•7m ago•0 comments

Common Cents Act (H.R.10167)

https://www.congress.gov/bill/119th-congress/house-bill/10167
3•dataflow•7m ago•0 comments

vLLM-GR: Efficient Inference for Generative Recommendation

https://vllm.ai/blog/2026-11-24-vllm-gr-announcement
1•gmays•12m ago•0 comments

Show HN: Just Dashboard, open-source Linux full management dashboard

https://just-dashboard.com/
1•Wayy10•18m ago•0 comments

RISC-V Profiles RVA23.1 and RVB23.1 Ratified and Merged into the Manual

https://riscv.github.io/riscv-isa-manual/snapshot/spec/#vol:profiles
1•snvzz•19m ago•0 comments

Theodore Zeldin, Britain's most Francophile historian, dies at 93

https://www.lemonde.fr/en/obituaries/article/2026/11/26/theodore-zeldin-britain-s-most-francophil...
2•toomuchtodo•22m ago•1 comments

Show HN: Branching-story-kit – 207-line zero-dep story-state kernel (MIT)

https://github.com/ouba-studio/branching-story-kit
1•andykymak•22m ago•0 comments

Show HN: A local-first zero knowledge project

1•ZachQ•24m ago•1 comments

What I Learned from Playing "Spelling Bee"

https://www.mooreds.com/wordpress/archives/3750
1•mooreds•25m ago•0 comments

Trust Is an Outcome: From Zero Trust to Verified Trust

https://www.theidentityunderground.com/post/trust-is-an-outcome-from-zero-trust-to-verified-trust
2•mooreds•25m ago•0 comments

Show HN: Comparison of Podcasting 2.0 players with Digilore

https://digilore.org/comparing-digilore/
1•logn•27m ago•0 comments

HeyOrbo – AI Powered Notch on Desktop

https://heyorbo.com
1•pyonic•30m ago•0 comments

Amazon vs. Walmart: Why Retailers Are Split on AI Shopping Agents

https://www.mindstudio.ai/blog/ai-agents-shopping-access-wars
2•GloVin•31m ago•0 comments

The AHM's awkward position on the Riemann Hypothesis being solved

https://proofsandprompts.com/2026/11/25/on-the-ahms-awkward-position-on-the-riemann-hypothesis-be...
3•num42•32m ago•0 comments

Exhibit A with AI: Don't Skip or Write "None."

https://www.rickmanelius.com/p/exhibit-a-with-ai-dont-skip-or-write
1•mooreds•33m ago•0 comments

Show HN: StackMaestro – Local management of agent-generated stacks

https://github.com/marklyons/stackmaestro
1•mklyons•33m ago•1 comments

Show HN: Auth proxy backed by hardware-attested Yubikeys

https://github.com/adrianchifor/shomei
1•adrianchifor•36m ago•0 comments

Ask HN: What do you think of a revamped HN UI/UX?

1•george_max•36m ago•4 comments

Globe Dating Game

https://globeguessr.io/
2•stoorafa•38m ago•1 comments

Riemann Hypothesis Catastrophe(2020)

https://www.lesswrong.com/w/riemann-hypothesis-catastrophe
2•num42•47m ago•0 comments

Andrew Sutherland,mathematician Who Verified Claude’s Riemann Proof[video]

https://www.youtube.com/watch?v=DHNFtd0yfds
1•num42•49m ago•0 comments

Featherweight flying microrobot carries its own sensors and computers

https://news.mit.edu/2026/featherweight-flying-robot-carries-its-own-sensors-and-computers-1118
3•bookofjoe•50m ago•0 comments

QBasically – Basically QBasic, in the Browser

https://www.qbasically.com/
1•indigodaddy•50m ago•0 comments

Pier collapses, seawalls breached, homes flooded as high tides hit California

https://www.latimes.com/california/story/2026-11-25/historic-king-tides-come-to-california-coast
3•carabiner•54m ago•0 comments

Will the next big discovery using LLM's solve Fusion Energy?

2•DivingForGold•55m ago•0 comments

Show HN: Run your own Hacker News on Hatamoto (open-source, one binary)

https://news.hatamoto.dev/
3•zenincognito•1h ago•0 comments