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•10mo 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•10mo 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?

Show HN: I built an LSM storage engine from scratch in Rust

https://n8z.dev/posts/building-strata/
1•nlz•1m ago•0 comments

'Execution at sea': Was the Iranian ship sunk by US in the Indian Ocean unarmed?

https://www.thestatesman.com/india/execution-at-sea-was-iris-dena-iranian-frigate-sunk-by-us-in-t...
1•TheAlchemist•2m ago•0 comments

Getting Started with the Popover API

https://www.smashingmagazine.com/2026/03/getting-started-popover-api/
1•PaulHoule•3m ago•0 comments

ALT5 Digital Holdings Alternative Funding from World Liberty Financial

https://www.thecreditbubble.com/p/lotw-148-tokens-all-the-way-down
1•petethomas•3m ago•0 comments

Entanglement-assisted non-local optical interferometry in a quantum network

https://www.nature.com/articles/s41586-026-10171-w
1•bookofjoe•4m ago•0 comments

Beyond Slop

https://www.joelsimon.net/beyond-slop
1•joelS•4m ago•0 comments

Found a CVSS 10.0 bypass in Hugging Face's model scanner. We open-sourced ours

https://www.promptfoo.dev/blog/open-sourcing-modelaudit/
2•yashchhabria•4m ago•1 comments

BYD's Second-Generation Blade Battery Makes Western EV Tech Look Ancient

https://insideevs.com/news/789094/byd-second-generation-blade-battery/
2•nobody9999•5m ago•0 comments

I keep building projects nobody wants. So this time I'm doing it backwards

2•thefern•7m ago•0 comments

Amazon degraded shopping- you have to put in cart to see the price

3•talkingtab•8m ago•2 comments

Show HN: A user daemon to provide an age-bracketing API

https://github.com/danudey/aged
1•danudey•9m ago•0 comments

Show HN: Google A2A for Elixir with GenServer-like ergonomics

https://github.com/actioncard/a2a-elixir
1•maxekman•9m ago•0 comments

Century of Humiliation

https://en.wikipedia.org/wiki/Century_of_humiliation
1•mefengl•11m ago•0 comments

Modular: Structured Mojo Kernels

https://www.modular.com/blog/structured-mojo-kernels-part-1-peak-performance-half-the-code
2•tosh•11m ago•0 comments

Show HN: Museum Music

https://museummusic.samrawal.com/
1•zora_goron•14m ago•0 comments

Judges to AG: It's OK for the Gov't to Dox People, but Not the Other Way Around?

https://www.techdirt.com/2026/03/05/judges-to-ag-pam-bondi-its-ok-for-the-govt-to-dox-people-but-...
4•hn_acker•14m ago•2 comments

Show HN: Git Diff for Agentic Coding

https://github.com/msoedov/justshowmediff
1•alex_mia•14m ago•0 comments

'Our consciousness is under siege': On chatbots, social media and mental freedom

https://www.theguardian.com/wellness/2026/mar/05/michael-pollan-book-a-world-appears-consciousnes...
6•billybuckwheat•15m ago•0 comments

Show HN: History Snacks – explore 9k historical events by date

https://historysnacks.io/
1•dmujeeb•21m ago•0 comments

Pentagon Formally Labels Anthropic Supply-Chain Risk

https://www.wsj.com/politics/national-security/pentagon-formally-labels-anthropic-supply-chain-ri...
14•klausa•21m ago•0 comments

SpaceX launches rockets with Excel. Here's why we're trying to replace it

https://docs.synnaxlabs.com/blog/introducing-arc
4•embonilla•21m ago•1 comments

Show HN: DocMCP – Index any docs site locally, search it from Claude via MCP

1•pieeee•22m ago•0 comments

Section 230 Isn't the Problem: Debating the Law on the Majority Report

https://www.techdirt.com/2026/03/05/section-230-isnt-the-problem-debating-the-law-on-the-majority...
1•hn_acker•24m ago•0 comments

Let's Get Physical

https://m4iler.cloud/posts/lets-get-physical/
7•MBCook•25m ago•0 comments

How Iran is using cheap drones to cause chaos across the Middle East

https://www.bbc.co.uk/news/resources/idt-b3a272f0-3e10-4f95-9cd1-b34ab8ad033c
4•tartoran•26m ago•0 comments

What if it's World War III?

https://colinbeavan.substack.com/p/what-if-its-world-war-iii
3•ObiOnePierogi•28m ago•0 comments

ELife Fallout

https://nikomc.com/2026/03/05/elife-fallout/
1•mailyk•28m ago•0 comments

AI as the "New Air"

https://futurium.ec.europa.eu/en/apply-ai-alliance/posts/ai-new-air
2•dlidnl•30m ago•1 comments

GPT-5.4 Is the Best OpenAI Model for SRE That We've Seen on Our SRE Benchmark

https://twitter.com/LaurenceLiang1/status/2029633049906872705
1•larryll•31m ago•0 comments

Show HN: Arcane Agents – A visual control room for terminal AI agents

https://github.com/thomasrice/arcane-agents
1•damanamathos•32m ago•0 comments