frontpage.
newsnewestaskshowjobs

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?

Mastra compromised in supply chain attack

https://www.endorlabs.com/learn/mastra-npm-org-compromised-multiple-packages-trojanized-to-drop-a...
1•bugvader•1m ago•1 comments

Token spend is not token capital

https://twitter.com/TJWXF3/status/2067080353081356313
1•tomjwxf•2m ago•0 comments

Not everything needs to be groundbreaking

https://pipsthoughts.substack.com/p/not-everything-needs-to-be-groundbreaking
1•PenPressman•2m ago•0 comments

Malaysia's AI agent-powered messaging app Respond.io raises $62.5M

https://techcrunch.com/2026/06/15/malaysias-respond-io-raises-62-5m-eyes-acquisitions-in-north-am...
2•doppp•8m ago•0 comments

I Built a POS App for Businesses That Still Use Notebooks and Excel

https://www.indiehackers.com/post/i-built-a-pos-app-for-businesses-that-still-use-notebooks-and-e...
2•cas8398•8m ago•0 comments

US approval of Paramount/Warner Bros. deal surprised DOJ lawyers, report says

https://arstechnica.com/tech-policy/2026/06/us-approval-of-paramount-warner-bros-deal-surprised-d...
4•derbOac•14m ago•0 comments

Agentic Grocery Shopping on Uber Eats

https://www.uber.com/us/en/blog/uber-cart-assistant/
2•samrohn•15m ago•0 comments

Indian telecom operator Reliance sabotages Telegram access outside India

https://twitter.com/durov/status/2066945969854234977
3•aayushdutt•22m ago•0 comments

Show HN: SciFigureAI – AI figure maker for research papers

https://scifigureai.com
2•jiangyifeng•24m ago•0 comments

ZFSBootMenu

https://zfsbootmenu.org
3•porjo•26m ago•0 comments

Headroom

https://github.com/chopratejas/headroom
2•marc__1•28m ago•0 comments

Helios: Turn Code into Video

https://www.heliosrender.com
2•wahnfrieden•30m ago•0 comments

Upgrading My Git Embedding Program for Zig 0.16

https://louislefebvre.net/tech/zig-upgrade-16/
2•louislef299•33m ago•0 comments

From AGI to ASI

https://deepmind.google/research/publications/239142/
2•danielmorozoff•37m ago•0 comments

Playbook on how to make an AI Movie (this one got funded)

https://twitter.com/PJaccetturo/status/2066870939644813487
2•titusblair•37m ago•0 comments

MicroGPT and Interactive Walkthrough

https://researcher111.github.io/ML-Security-Public/labs/lab-02/microgpt.html
2•learning2Grow•37m ago•0 comments

Leaked OpenAI financials show $38.5B loss and compute burn

https://runtimewire.com/article/openai-leaked-financials-altman-compute-burn
5•TechApocalypse•38m ago•2 comments

From AGI to ASI

https://arxiv.org/abs/2606.12683
2•danielmorozoff•38m ago•0 comments

Cursor Says 1.5T Parameter Coding Model Is Training on 100k GPUs

https://runtimewire.com/article/cursor-1-5t-model-100000-gpus-compile
4•TechApocalypse•38m ago•0 comments

Hackers Publish Knicks and Madison Square Garden Data Online

https://www.404media.co/hackers-publish-knicks-and-madison-square-garden-data-online/
4•Cider9986•48m ago•2 comments

GE-265 / Dartmouth Time-Sharing System Revisited

https://icm.museum/blog/?p=564
5•sdf_pubnix•49m ago•0 comments

The AI Boom's Hunt for Cash Hits a New Corner of the Bond Market

https://www.wsj.com/finance/investing/the-ai-booms-hunt-for-cash-hits-a-new-corner-of-the-bond-ma...
3•ilreb•51m ago•0 comments

Slopmith (popular Rocksmith inspired guitar game) slapped with DMCA takedown

https://old.reddit.com/r/rocksmith/comments/1u6jg96/dmca_takedown_notice_for_slopsmith/
3•webprofusion•53m ago•1 comments

Show HN: Otty – a native and beautiful terminal emulator

https://otty.sh/
3•ilchenearly•53m ago•0 comments

Revised Rules of Engineering Leadership

https://lethain.com/revised-rules-of-engineering-leadership/
2•RyeCombinator•55m ago•0 comments

Show HN: Building a Stateful AI Agent

https://github.com/surya17495/centri
2•suryaankata•1h ago•0 comments

DIY crane bot that tidies up a room

https://hackaday.com/2026/06/15/building-a-ceiling-based-crane-robot-to-keep-a-room-clean/
5•soupspaces•1h ago•1 comments

Seventeen Camels and Where They Can Take You

https://mathenchant.wordpress.com/2026/06/15/seventeen-camels-and-where-they-can-take-you/
2•akkartik•1h ago•0 comments

Flax debugging: making a hash of things

https://www.gilesthomas.com/2026/06/hashing-jax-parameters
2•gpjt•1h ago•0 comments

Multiple mastra NPM packages compromised

https://github.com/mastra-ai/mastra/issues/18045
4•varunsharma07•1h ago•1 comments