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?

CodexKit – Build agent-powered iOS apps (threads, tools, memory)

https://github.com/timazed/CodexKit
1•timazed•22s ago•0 comments

Show HN: NoProcrast – A browser extension modeled on HN's noprocrast feature

https://addons.mozilla.org/en-US/firefox/addon/noprocrast/
1•xanthine•9m ago•0 comments

Zmx: Session Persistence for Terminal Processes

https://zmx.sh/
1•sgloutnikov•9m ago•0 comments

Hardest Hard Drive Commercial [video]

https://www.youtube.com/watch?v=ZXs_9OXRnQo
1•ketchup32613•11m ago•0 comments

Show HN: Sandbox-policy-builder, helper for Vercel Sandbox credentials brokering

https://github.com/giselles-ai/sandbox-policy-builder
1•toyamarinyon•13m ago•0 comments

FIRST Robotics founder Dean Kamen resigns because of Epstein files

https://www.nhpr.org/nh-news/2026-03-12/dean-kamen-resigns-first-epstein-nh-newhampshire
2•benwen•16m ago•0 comments

My DIY FPGA board can run Quake II

https://blog.mikhe.ch/quake2-on-fpga/
1•tapoxi•17m ago•0 comments

Bug Mentor – Mentoring developers with Q&A during software bug resolution

https://raisedal.substack.com/p/bug-mentor-mentoring-developers-with
1•masud2336•22m ago•0 comments

Show HN: Lula – multi-agent coding assistant with sandboxed Rust exec engine

https://github.com/christianmeurer/Lula
1•chrismeurer•29m ago•0 comments

AI ends online anonymity: the ease of unmasking pseudonymous accounts

https://english.elpais.com/technology/2026-03-12/ai-ends-online-anonymity-the-ease-of-unmasking-p...
4•1vuio0pswjnm7•29m ago•0 comments

[Product Launch] Synapse: Define your signals and we'll monitor for them

https://synapsesignal.net/
1•atakaboudi•30m ago•1 comments

【Open Source and Free】a macOS Menu Bar Cryptocurrency Price Monitor

https://twitter.com/realedgelab/status/2035902084244291964
1•mylxsw•33m ago•0 comments

LLMs can't reason and never will

https://pablomarino.com/research_blog/2026/03/23/research5.html
2•pablonm•41m ago•3 comments

Simulation Theory Misses the Point

https://simontlbt.substack.com/p/simulation-theory-misses-the-point
4•simontlbt•42m ago•0 comments

The First Pancake Principle. How to Get Started

https://medium.com/weirdo-poetry/the-first-pancake-principle-a67e374bceea
1•puttycat•44m ago•0 comments

Tesla faces wider probe of self-driving feature

https://apnews.com/article/tesla-selfdriving-musk-regulators-7edce5705e93775e1b8bb77b5dd54007
1•1vuio0pswjnm7•47m ago•0 comments

AI is making the hard choice between consumer safety and privacy even trickier

https://nypost.com/2026/03/22/tech/as-ai-takes-over-consumers-face-a-hard-choice-between-safety-a...
1•1vuio0pswjnm7•51m ago•0 comments

Pandora's Bog: the global energy shock of 2026 [pdf]

https://assets.jpmprivatebank.com/content/dam/jpm-pb-aem/global/en/documents/eotm/pandoras-bog.pdf
2•gwintrob•58m ago•0 comments

Zunbook.com: 48k AI Agents Turn Live News into Podcasts and Music

https://zunvra.com
1•aerosol•58m ago•0 comments

OpenAI to double workforce as business push intensifies

https://www.ft.com/content/7ffea5b4-e8bc-47cd-adb4-257f84c8028b
5•gnabgib•1h ago•2 comments

OpenAI to nearly double headcount this year

https://www.semafor.com/article/03/22/2026/openai-to-double-headcount
4•kieto•1h ago•1 comments

Show HN: AgentVerse – Open social network for AI agents (Mar 2026)

https://nickakre.github.io/agentverse-social/
3•nickakre•1h ago•0 comments

"Collaboration" Is Bullshit

https://www.joanwestenberg.com/collaboration-is-bullshit/
16•mitchbob•1h ago•1 comments

Blessed.rs – Recommended Crate Directory

https://blessed.rs/crates
2•linkdd•1h ago•0 comments

Garrytan/gstack: Use Garry Tan's exact Claude Code setup: 15 opinionated tools

https://github.com/garrytan/gstack
3•heihieih•1h ago•1 comments

Laid Off in Midlife, China's Reform Generation Braces for Downward Mobility

https://www.nytimes.com/2026/03/21/business/laid-off-in-midlife-chinas-reform-generation-braces-f...
5•mitchbob•1h ago•1 comments

Bloom Filters

https://arpitbhayani.me/blogs/bloom-filters/
3•narasimhasai144•1h ago•0 comments

The Rug Pull Attack: MCP Tool Definitions Can Change After User Approval

https://nasser.nz/blog/rug-pull-attack
2•prooftrail•1h ago•0 comments

Paving Hawaiian roads with recycled plastics and abandoned fishing nets

https://www.acs.org/pressroom/presspacs/2026/march/paving-hawaiian-roads-with-recycled-plastics-a...
2•geox•1h ago•0 comments

Nibble – declarative bit-level binary parsing for Go using struct tags

https://github.com/PavanKumarMS/nibble
1•pavan_s•1h ago•1 comments