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?

Curiosity Is No Solo Act

https://thereader.mitpress.mit.edu/curiosity-is-no-solo-act/
2•Petiver•7m ago•0 comments

Philip Roth and David Remnick getting personal (2001)

https://salmagundi.skidmore.edu/articles/2001-philip-roth-david-remnick
1•Caiero•7m ago•0 comments

Here in the World: Letters of Albert Camus, 1944–1959

https://literaryreview.co.uk/here-in-the-world
1•lermontov•8m ago•0 comments

A Simple Proxy for Perplexity

https://www.mercor.com/blog/a-simple-proxy-for-perplexity/
1•reasonableklout•9m ago•0 comments

Why People Keep Their Body Parts After Surgery

https://time.com/article/2026/11/19/when-people-keep-what-surgeons-remove/
1•gmays•14m ago•0 comments

Show HN: NYT style daily word/logic puzzle

https://clusterbust.com/
1•sightspinner•14m ago•0 comments

Huawei convicted of deceiving banks about Iran, stealing US trade secrets

https://www.theguardian.com/technology/2026/nov/24/huawei-china-convicted-deceiving-banks-stealin...
2•andsoitis•15m ago•0 comments

Ding – Toast notifications that morph into each other

https://github.com/yusufCeng1z/ding
2•yusufceng1z•17m ago•0 comments

The pull request is dead

https://www.codeship.com/articles/the-pull-request-is-dead
1•davinci123•20m ago•0 comments

17M lines of Lean, one alleged fatal flaw: challenge to Riemann Hypothesis proof

https://twitter.com/JackyReaps/status/2125043056479240501
4•mrkn1•25m ago•0 comments

Chimera: A physically modeled voice synthesizer

https://www.chimera.audio/
1•ohjeez•26m ago•0 comments

The Rise of Low Precision Floating Point

https://arxiv.org/abs/2611.00301
1•matt_d•26m ago•0 comments

Sparrow Postmortem

https://jakequist.com/articles/sparrow-post-mortem/
2•jakequist•28m ago•1 comments

The American Chestnut is back

https://www.theguardian.com/environment/2026/nov/24/american-chestnut-tree-restored-science-persi...
3•triceratops•28m ago•0 comments

We're racing towards dangers, Yoshua Bengio says

https://www.cbsnews.com/news/ai-yoshua-bengio-warns-dangers-artificial-intelligence/
1•Exoristos•29m ago•0 comments

Migrating Desktop App from Tauri to Native GPUI: 76% Less Idle Memory and

https://galvered.com/blog/muxflow-gpui-migration/
2•birdculture•30m ago•0 comments

Towards Fair Resource Sharing in Agentic LLM Serving

https://arxiv.org/abs/2611.23558
1•matt_d•31m ago•0 comments

Koi: Evidence-Guided, Self-Calibrating Planning for Multi-Cloud LLM Inference

https://gangmuk.github.io/koi/
1•matt_d•33m ago•0 comments

Foreman: A secure self-hosted agent orchestrator

https://www.palkeo.com/en/blog/foreman.html
1•_xor_•34m ago•0 comments

Frontier models pass DeepSWE and Terminal-Bench tasks without doing the work

https://www.shreshthrajan.com/envaudit/
2•shreshthrajan•37m ago•0 comments

I used to orchestrate agents. Now I orchestrate orchestrators

https://www.nijho.lt/post/orchestrating-orchestrators/
1•gmays•38m ago•0 comments

Post Incident Report for Microsoft 365 [pdf]

https://www.365fanatic.com/wp-content/uploads/2026/11/postincidentreport-mo1550821.pdf
4•vinnyglennon•39m ago•1 comments

Bodybench: Testing Adversarial Image Defenses Against AI Nudification Inpainting

https://openreview.net/challenge?redirect=%2Fforum%3Fid%3DBQGCgTjvdo
1•datascientist•40m ago•0 comments

GLP-1 use risk bone fractures and muscle loss in older users

https://www.abc.net.au/news/2026-11-25/glp1-weight-loss-muscle-loss-bone-fractures/107419818
2•Gaishan•42m ago•1 comments

The Future of Email Verification

https://resend.com/blog/the-future-of-email-verification
7•philnash•47m ago•0 comments

The Chinese AI app Talkie engineered to hook kids and mine their data

https://www.abc.net.au/news/2026-11-25/chinese-ai-companion-app-talkie-child-harm-allegations/107...
3•Gaishan•47m ago•0 comments

Running a grammar correction model inside an iPhone keyboard

https://pixdeo.com/blog/gec-part-2-mochi-grammar-model/
2•mromanuk•48m ago•0 comments

Show HN: End User, a game about smuggling AI chips past export controls

https://enduser.fun/?src=hn
1•retrolover83•49m ago•0 comments

Show HN: UFO OPTIX Scanning satellite imagery for flying craft artifacts

https://ufoptix.org
2•markmnl•50m ago•0 comments

T3 Code v0.1.11 sends hashed OpenAI and Claude account IDs at first launch

https://www.everydev.ai/p/tool-t3-code-v0111-sends-hashed-openai-and-claude-account-ids-at-first-...
2•devhouse•53m ago•3 comments