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

Elon Musk's Lawyers Ask OpenAI's President Why He Is Worth $30B

https://www.nytimes.com/2026/05/04/technology/elon-musk-greg-brockman-openai-trial.html
1•1vuio0pswjnm7•1m ago•0 comments

Publishers sue Meta, claiming it violated copyrights in training AI with books

https://www.washingtonpost.com/national-security/2026/05/05/publishers-sue-meta-ai-copyright/
1•1vuio0pswjnm7•3m ago•0 comments

Red Button, Blue Button

https://softmax.com/blog/red-button-blue-button
1•tosh•5m ago•0 comments

ABG – An Online Bioinformatics Lab

https://abg-discord.vercel.app/
1•jeremykalfus•8m ago•0 comments

'FOMO has proven a stronger incentive than poor stock performance' Goldman Sachs

https://fortune.com/2026/05/06/is-ai-a-bubble-goldman-sachs-skeptics-overhyped/
2•1vuio0pswjnm7•9m ago•0 comments

Europe Tech Tools

1•RickyFarmer•9m ago•0 comments

Prompt API: No web standard should require users to agree an ads company's TOC

https://wil.to/posts/googles-prompt-api/
1•maxloh•10m ago•0 comments

GitHub outage: CCR and CCA failing to start for PR comments

https://www.githubstatus.com/incidents/qp0lxr014sw8
2•paulannesley•12m ago•2 comments

ZAYA1-8B: Frontier intelligence density, trained on AMD

https://www.zyphra.com/post/zaya1-8b
2•armcat•13m ago•0 comments

Russia's top secret spy school teaching hacking and election meddling

https://www.theguardian.com/world/2026/may/07/revealed-russia-top-secret-spy-school-hacking-weste...
2•svenfaw•14m ago•0 comments

Gephi 0.11 is out: performance improvements

https://gephi.wordpress.com/2026/05/05/gephi-0-11-major-performance-upgrade-and-new-features/
1•seinecle•16m ago•0 comments

The boring way to build a startup

https://plausible.io/blog/ignore-startup-advice
1•tjek•20m ago•1 comments

Openrouter SDK for Elixir

https://hex.pm/packages/openrouter_sdk
4•ThatDumbGirl•21m ago•0 comments

Blink – AI Assistant. A knowledge destination

https://blink-oi.vercel.app
1•Pascal1997•23m ago•0 comments

Citadel Securities: Why C++ wins in finance [video]

https://www.youtube.com/watch?v=InLxLEqg_fs
1•vincentchau•24m ago•0 comments

Open weights are quietly closing up – and that's a problem

https://martinalderson.com/posts/open-weights-are-quietly-closing-up/
1•signa11•24m ago•0 comments

How Claris is building for what comes next

https://www.claris.com/blog/2026/how-claris-is-building-for-what-comes-next
1•tosh•28m ago•0 comments

An Open Invite to Targeted Indivduals

1•beeburrt•30m ago•0 comments

Portable Snippets: Collection of miscellaneous portable C snippets

https://github.com/nemequ/portable-snippets
1•q7m•31m ago•0 comments

pg_flight_recorder: Continuously sample PostgreSQL system state via pg_cron

https://github.com/dventimisupabase/pg_flight_recorder
1•tanelpoder•38m ago•0 comments

A Timeline of MCP Security Breaches (2025-2026)

https://authzed.com/blog/timeline-mcp-breaches
2•abhishekhsingh•41m ago•0 comments

Show HN: Bilig, headless spreadsheet engine for Node services and agents

https://github.com/proompteng/bilig
2•GregKonush•46m ago•0 comments

Samsung Hits $1T Valuation Amid Apple Chip Diversification Talks

https://www.macrumors.com/2026/05/06/samsung-1-trillion-valuation/
2•tosh•51m ago•0 comments

Building the TD4 4-Bit CPU

https://jayakody2000lk.blogspot.com/2026/05/building-td4-4-bit-cpu.html
4•zdw•54m ago•1 comments

The [hallucinated] –I-tell-you-shut-up flag

https://til.andrew-quinn.me/posts/the-i-tell-you-shut-up-flag/
2•hiAndrewQuinn•55m ago•0 comments

Dashboard tracking the 100-day promises of the Nepali government

https://digitalpratipakshya.com/
2•laxmena•1h ago•0 comments

Ws-low-level 1.0.1 for Node.js

https://www.npmjs.com/package/ws-low-level
1•jonlachlan•1h ago•1 comments

Samsung to exit China home appliance sales amid shrinking market share

https://www.chinadaily.com.cn/a/202604/28/WS69f0b8d3a310d6866eb46090.html
2•Markoff•1h ago•1 comments

Bun project's GitHub bot has now made more contributions to Bun than Jarred

https://twitter.com/i/status/2052133374018699373
2•thunderbong•1h ago•0 comments

Most Widely Deployed and Used Database Engine

https://sqlite.org/mostdeployed.html
2•sebmellen•1h ago•0 comments