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?

How to report copying review data under Copyright to google

https://www.google.com/
1•nsinghal12•2m ago•0 comments

AI's real bottleneck is data delivery

https://techcrunch.com/sponsor/f5/your-gpus-arent-the-problem-ais-real-bottleneck-is-data-delivery/
1•adithyaharish•4m ago•0 comments

Gradle Technologies is now Develocity

https://develocity.ai/blog/gradle-technologies-is-now-develocity/
1•mccullal8•8m ago•0 comments

Streaming Encryption (2014)

https://www.imperialviolet.org/2014/06/27/streamingencryption.html
1•nivethan•11m ago•0 comments

Asbestos is a tool, just like any other

https://www.osnews.com/story/145530/asbestos-is-a-tool-just-like-any-other/
1•amcclure•11m ago•0 comments

Samsung is testing a network permission toggle feature

https://www.androidauthority.com/samsung-one-ui-9-concentration-feature-3666807/
1•vilasa•14m ago•0 comments

Router ARP/NAT contradict after reload. Client ghost or firmware bug?

1•asdem•14m ago•0 comments

Preempt AI v2 – AI is powerful. Make sure it's safe too

https://www.getpreempt.com/
1•karthikravva•18m ago•0 comments

Barefoot shoes are trendy after years of mockery. Do they work?

https://slate.com/life/2026/07/barefoot-shoes-minimalist-toe-running-sneakers-xero-vibram.html
3•littlexsparkee•21m ago•0 comments

Show HN: PocketVeto is a Bluetooth-only AI agent remote control

https://github.com/pocket-veto/pocket-veto
1•pocket-veto•21m ago•0 comments

OpenAI Staffers Are Funding a Rival Super Pac to Take on Their Boss

https://www.wired.com/story/openai-employees-donations-guardrails-alliance-leading-the-future/
4•1vuio0pswjnm7•22m ago•0 comments

Meta data centre in Alberta to start operating before neighbouring power plant

https://www.cbc.ca/news/canada/edmonton/meta-data-centre-alberta-greenlight-power-plant-9.7266096
3•1vuio0pswjnm7•24m ago•0 comments

Meta axes feature allowing tagging Instagram users to generate AI images of them

https://www.cbc.ca/news/business/meta-instagram-change-ai-settings-9.7265448
2•1vuio0pswjnm7•25m ago•0 comments

Show HN: Human0 – A template to run an autonomous, self-improving code loop

https://github.com/human0-ai/template
1•moshest•25m ago•0 comments

Databricks Set to Hit $188B Valuation with New Investment from Coatue

https://www.wsj.com/tech/ai/databricks-set-to-hit-188-billion-valuation-with-new-investment-from-...
2•jgalt212•26m ago•1 comments

Taliban 'National Keyboard' App Risks User Surveillance

https://www.afintl.com/en/202605276608
3•alephnerd•26m ago•1 comments

Code Ownership and Software Quality: A Replication Study (2015)

https://www.microsoft.com/en-us/research/publication/code-ownership-and-software-quality-a-replic...
2•LAC-Tech•28m ago•1 comments

FCC Officials Took $$$ Gifts from Paramount as Company Needed Approval for Deals

https://www.propublica.org/article/paramount-mergers-fcc-kennedy-center-gala
3•WarOnPrivacy•28m ago•0 comments

Chaldean Mass (Old) [video]

https://www.youtube.com/watch?v=HIZDK1PsJpY
1•marysminefnuf•29m ago•0 comments

Declassified Documents detailing Voting System Vulnerabilities 16-July-2026

https://www.whitehouse.gov/election-integrity/
4•pudgywalsh•31m ago•2 comments

Show HN: Piano Shepherd – a piano game for kids

https://zslava.itch.io/piano-shepherd
1•zslava88•31m ago•1 comments

Show HN: Levity, an open-source logo studio that runs as a single local binary

https://www.logodesignxperts.com/free-logo-tool/
1•abratabia•31m ago•0 comments

More Bounce to the Ounce: The rocket that everyone is too chicken to build

https://mceglowski.substack.com/p/more-bounce-to-the-ounce
2•decimalenough•32m ago•0 comments

Show HN: A LeetCode alternative - learn DSA through visual jigsaw puzzles

https://pqdsa.com/
1•_dragonguy•32m ago•0 comments

Show HN: Mocca – Claude Code wrapper where Plugin takes center stage

https://github.com/valehelle/mocca-hub
1•brighbun•37m ago•0 comments

Agnys – The flight recorder for AI agents

https://agnys.net/
1•ashishrdy•38m ago•0 comments

Show HN: Selenium Boot – Spring Boot's Conventions, Applied to Selenium

https://seleniumboot.com/
2•mdsddmhossain•41m ago•0 comments

Secrets in the ArXiv

https://arxiv.org/abs/2604.20927
2•wawayanda•41m ago•0 comments

Ask HN: How do you handle ticket management across Discord, GitHub, and email?

2•Daniel-Pan•42m ago•1 comments

Show HN: KV-Cache Grafting – Boosting frozen 12B LLMs to 93.3% AIME accuracy

https://arxiv.org/abs/2607.14431
2•Corbenic•43m ago•0 comments