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?

Qwe (kiwi): lightweight, flexible, file-first version/revision control system

https://github.com/mainak55512/qwe
1•thunderbong•16s ago•0 comments

Not sure how to view or share your Claude Code sessions? Drop them right here

https://specious.github.io/obsession/
1•specious•10m ago•0 comments

Carbon dioxide levels in the atmosphere just hit a 'depressing' new record

https://www.scientificamerican.com/article/carbon-dioxide-levels-in-the-atmosphere-just-hit-a-dep...
2•rolph•11m ago•0 comments

Why is southern Italy poorer than northern Italy?

https://statsandsociety.substack.com/p/fully-explaining-the-italian-south
3•paulpauper•13m ago•0 comments

Arthur Brooks on Reinvention, Religion, and the Science of Happiness (Ep. 274)

https://conversationswithtyler.com/episodes/arthur-brooks/
2•paulpauper•14m ago•0 comments

From Tiny Seed to Towering Sequoia: How Purdue Hackers Changed My Life

https://www.jackhogan.me/blog/from-tiny-seed-to-towering-sequoia
3•j0h120311•14m ago•0 comments

93k Layoffs in 2026

https://layoffs.fyi/
4•mgh2•15m ago•0 comments

SEC moves to scrap quarterly reporting requirement

https://www.ft.com/content/3560d1e3-8271-453f-84d6-4a875b9efd98
3•petethomas•19m ago•0 comments

Study to date on school phone bans

https://marginalrevolution.com/marginalrevolution/2026/05/the-best-study-to-date-on-school-phone-...
3•paulpauper•22m ago•1 comments

MCP Steroid – Give AI the whole IDE, not just the files

https://mcp-steroid.jonnyzzz.com/
3•crummy•26m ago•0 comments

The Pope Had to Call Customer Service

https://www.nytimes.com/2026/05/05/us/pope-leo-xiv-bank-customer-service.html
2•osnium123•30m ago•0 comments

Anthropic moral dev said AI overcorrection could address historical injustices

https://www.foxnews.com/politics/anthropics-moral-compass-architect-suggested-ai-overcorrection-c...
3•like_any_other•34m ago•3 comments

Defeating Works by Design's Unpickable Lock [video]

https://www.youtube.com/watch?v=rMi1dIqMwNw
2•zdw•37m ago•0 comments

ParseFlow – Optimize Files for Context

https://docs.parseflow.tech/
4•bollethegoalie•37m ago•0 comments

The First Modern Car Without Hydraulic Brakes Is Headed to Production

https://www.thedrive.com/news/the-first-modern-car-without-hydraulic-brakes-is-headed-to-production
2•voisin•41m ago•1 comments

Show HN: MCP-identity – Per-request cryptographic attestation for MCP servers

https://github.com/mustafabagdatli-git/mcp-identity
4•mustafabagdatli•44m ago•0 comments

Depression Hates a Moving Target

https://twitter.com/anishmoonka/status/2051517996481364144
3•delichon•48m ago•1 comments

Leadly – AI lead generation for small businesses at $9/month

https://willowy-kulfi-0cbaff.netlify.app
3•Leadly•53m ago•1 comments

Apple to Pay $250M to Settle Class Action over Delayed Siri Features

https://www.macrumors.com/2026/05/05/apple-class-action-siri-lawsuit-settlement/
4•mgh2•53m ago•0 comments

Trustworthy JavaScript for the Open Web

https://hacks.mozilla.org/2026/05/trustworthy-javascript-for-the-open-web/
2•nnx•57m ago•0 comments

Linear's MCP server accepts HTTP:// redirect URIs for confidential OAuth clients

https://github.com/korrel-dev/mcp-audits/tree/main/audits/linear
3•issazangana•1h ago•0 comments

Canadian fiddler sues Google after AI wrongly claimed he was a sex offender

https://www.theguardian.com/music/2026/may/05/canadian-ashley-macisaac-fiddler-musician-singer-so...
3•Teever•1h ago•0 comments

Bevy and egui desktop app in production

https://nominal.io/blog/nominal-connect-shipping-realtime-desktop-software-with-rust-bevy-and-egui
2•phsilva•1h ago•0 comments

Sample App – On-Device AI Assistant for Android

https://github.com/ajay-sainy/GemOfGemma
2•qarue•1h ago•0 comments

Skelm – Build AI agents in TypeScript without losing your mind

https://github.com/scottgl9/skelm
2•scottgl•1h ago•0 comments

Lessons on Building MCP Servers

https://taoofmac.com/space/blog/2026/04/29/2341
2•gmays•1h ago•0 comments

StarFighter 16-Inch

https://us.starlabs.systems/pages/starfighter
47•signa11•1h ago•23 comments

Security Engineering Is a Context Problem

https://aseemshrey.in/blog/security-engineering-is-a-context-problem/
3•LuD1161•1h ago•0 comments

Show HN: Library to make your own Windows program launcher (like dmenu)

https://github.com/cristeigabriela/wintheon
2•gabriela_c•1h ago•0 comments

Google is building an AI agent that could be its answer to OpenClaw

https://www.businessinsider.com/google-ai-agent-openclaw-remy-gemini-assistant-2026-5
3•droidjj•1h ago•0 comments