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

Artemis II

https://en.wikipedia.org/wiki/Artemis_II
1•js2•21s ago•0 comments

The Rise of AI Augmented Writing

http://lockboxx.blogspot.com/2026/04/on-rise-of-ai-augmented-writing.html
1•ahokk•25s ago•0 comments

Ask HN: Is anyone using the paid app of screenpi.pe

1•mescalito•47s ago•0 comments

Dutchman labs – better evals for your AI agent

https://dutchmanlabs.com/
1•thesarsour•1m ago•1 comments

Quantum physics can confirm where someone is located

https://www.sciencenews.org/article/quantum-physics-location-security
1•kolanos•2m ago•0 comments

Movie Review: The AI Doc (2026)

https://thezvi.substack.com/p/movie-review-the-ai-doc
2•icely•3m ago•0 comments

Yupp.ai Is Closing

https://blog.yupp.ai/winddown
2•mkaramuk•3m ago•0 comments

LinkedIn MCP Server

https://github.com/stickerdaniel/linkedin-mcp-server
2•wslh•3m ago•0 comments

Show HN: Real-time dashboard for Claude Code agent teams

https://github.com/simple10/agents-observe
2•simple10•4m ago•1 comments

Translating non-trivial codebases with Claude

https://blog.danieljanus.pl/2026/03/26/claude-nlp/
1•nathell•5m ago•0 comments

Orthogonal to Eternity

https://www.metanoia-research.com/dispatch-002-orthogonal-to-eternity/
1•metanoia_•5m ago•0 comments

The Profession That Does Not Exist

https://thebaffler.com/odds-and-ends/the-profession-that-does-not-exist-symposium
1•greenie_beans•7m ago•0 comments

FFII Gifts Macron's EU Law Glasses to Unified Patent Court Judges

https://ffii.org/ffii-gifts-macrons-reading-glasses-to-unified-patent-court-judges/
2•zoobab•8m ago•0 comments

Trump suggests in new interviews he is considering withdrawing from NATO

https://www.cnn.com/2026/04/01/middleeast/trump-nato-us-withdrawal-intl
2•rawgabbit•8m ago•0 comments

CUDA Released in Basic

https://developer.nvidia.com/blog/cuda-tile-programming-now-available-for-basic/
3•apples2apples•8m ago•1 comments

GLM-5.1 tops Vector DB Benchmark

https://vector-db-bench.kcores.com/en/#leaderboard
3•Alifatisk•9m ago•0 comments

StepFun 3.5 Flash is #1 cost-effective model for OpenClaw tasks (300 battles)

https://app.uniclaw.ai/arena?tab=costEffectiveness&via=hn
4•skysniper•11m ago•0 comments

Mars for the Rest of Us

https://mceglowski.substack.com/
3•simonebrunozzi•11m ago•0 comments

Chrome Extensions Turn Shady

https://timleland.com/chrome-extensions-turn-shady/
2•TimLeland•13m ago•0 comments

EmDash: A spiritual successor to WordPress and plugin security

https://blog.cloudflare.com/emdash-wordpress/
18•elithrar•14m ago•3 comments

Predatorgate: Breaking the chain of impunity of the spyware underworld

https://edri.org/our-work/predatorgate-breaking-the-chain-of-impunity-of-the-spyware-underworld/
2•jruohonen•15m ago•0 comments

Musk's SpaceX Files to Go Public in One of the Biggest IPOs

https://www.wsj.com/business/spacex-ipo-sec-paperwork-filed-997e45e4
2•simonebrunozzi•16m ago•0 comments

Show HN: Morse Command – asteroid shooter that teaches Morse code (iOS)

https://morsecommand.com/
2•damascus•16m ago•0 comments

Show HN: Composable CLI for your meeting workflow

https://cli.char.com/
2•yujonglee•17m ago•0 comments

AI CEO vs. Engineer

https://www.youtube.com/watch?v=WAUnmQt2Z7Y
3•quantummagic•18m ago•1 comments

WIRED Talks About DIY Mobile Phones in 2006

https://www.wired.com/2006/12/diy-cell-phone/
2•OhMeadhbh•18m ago•1 comments

SpaceX has reportedly filed for the biggest IPO in history

https://www.engadget.com/big-tech/spacex-has-reportedly-filed-for-the-biggest-ipo-in-history-1545...
4•jrpelkonen•24m ago•0 comments

Ukrainian drone experts now in Middle East helping counter Iranian attacks

https://kyivindependent.com/201-ukrainian-drone-experts-deployed-to-middle-east/
3•Betelbuddy•25m ago•0 comments

Stolen KitKat Tracker

https://nestlecorporate.qualifioapp.com/quiz/1776864_2455/CDCG-KITKAT-STOLEN-FORM.html
4•RobSpectre•25m ago•2 comments

Lilly's Obesity Pill [Foundayo] Gets US Approval in Challenge to Novo

https://www.bloomberg.com/news/articles/2026-04-01/lilly-s-obesity-pill-gets-us-approval-in-fresh...
3•toomuchtodo•25m ago•1 comments