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?

QUBE 340/ Q300L

https://www.coolermaster.com/en-global/products/qube-430%2Fq300l.html
1•ilreb•46s ago•0 comments

Ben Forta - The UK's Social Media Ban: Necessary, and Bound to Fail

https://forta.com/blog/the-uks-social-media-ban-necessary-and-bound-to-fail
1•rmason•3m ago•0 comments

A new frontier in generative genomics with Omnii

https://www.radicalnumerics.ai/blog/omnii-health-preview
2•lebovic•6m ago•0 comments

Looking for a front end dev to help me build a math website

2•marysminefnuf•6m ago•0 comments

Banned Book Library in a Wi-Fi Smart Light Bulb

https://www.richardosgood.com/posts/banned-book-library/
4•sohkamyung•14m ago•0 comments

Show HN: Subagent-fleet – AI coding subagents across local Ollama machines

https://pypi.org/project/subagent-fleet/
1•akarnam37•14m ago•0 comments

67% of AI-generated commands are unsafe. We tested it

https://www.golproductions.com/blog/we-tested-gemini-ai-agent-67-percent-commands-were-unsafe
1•golproductions•15m ago•0 comments

American Express: Cell-Based Architecture for Resilient Payment Systems

https://americanexpress.io/cell-based-architecture-for-resilient-payment-systems/
3•birdculture•15m ago•0 comments

The efficiency-gain illusion: People underestimate the rate of AI use

https://arxiv.org/abs/2605.22687
2•Anon84•16m ago•0 comments

Build Compliant AI Agents with Stateful Stream Processing

https://www.confluent.io/blog/compliant-ai-agents-stateful-stream-processing/
1•manveerc•18m ago•0 comments

Show HN: Fish anything – a chill game using small models

https://build-small-hackathon-llm-fishing.hf.space
1•reuzed•19m ago•0 comments

Prediction and Entropy of Printed English - Claude Shannon (1950) [pdf]

https://www.princeton.edu/~wbialek/rome/refs/shannon_51.pdf
2•consumer451•19m ago•0 comments

The Official Akismet PHP SDK

https://akismet.com/blog/introducing-the-official-akismet-php-sdk/
3•gslin•26m ago•0 comments

Swedish parliament abolishes permanent residence visas for migrants

https://www.riksdagen.se/en/news/articles/2026/jun/9/permanent-residence-permits-to-be-abolished_...
18•CGMthrowaway•28m ago•9 comments

When Did White-Collar Work Start to Look So Bleak?

https://www.newyorker.com/magazine/2026/06/22/mutiny-noam-scheiber-book-review-yuppies-dylan-gott...
4•littlexsparkee•28m ago•2 comments

Andy McLean: Rapidus MoU Boosts U.K. Access to 2-Nm Tech- EE Times

https://www.eetimes.com/andy-mclean-rapidus-mou-will-help-british-innovators-access-2-nm-technology/
2•rbanffy•32m ago•0 comments

Meta Employees Hate Zuckerberg's Plan for a Companywide AI Hackathon

https://www.wired.com/story/meta-employees-absolutely-hate-mark-zuckerbergs-hackathon-idea/
7•cdrnsf•36m ago•0 comments

Ask HN: Why did you open source your project?

4•david_shi•36m ago•1 comments

Micro Radar: a tiny open-source flight radar for your desk

https://github.com/AnthonySturdy/micro-radar
4•asturdy•38m ago•1 comments

You Can't Have Both Democracy and Billionaires

https://www.currentaffairs.org/news/you-cant-have-both-democracy-and-billionaires
16•jacquesm•40m ago•1 comments

Justice Department Decision to Allow Paramount Deal Surprised Investigators

https://www.wsj.com/business/media/justice-department-decision-to-allow-paramount-deal-surprised-...
2•JumpCrisscross•41m ago•0 comments

Qualcomm in Talks to Purchase Tenstorrent

https://www.reuters.com/technology/qualcomm-talks-buy-tenstorrent-information-reports-2026-06-15/
3•milleramp•43m ago•0 comments

Openfootmanager: Open-source football management simulation game

https://github.com/openfootmanager/openfootmanager
2•nateb2022•44m ago•0 comments

Show HN: AltiVerse: What If SIM, see different decisions affect an environment

https://github.com/LeoTheAIDev/Altiverse
4•leoTheCoderrr•45m ago•0 comments

SMTP Relay with Web Dashboard

https://github.com/toinbox/simplerelay
2•toinbox•45m ago•0 comments

Satellite Tracker 3D

https://satellitetracker3d.com/track?norad-id=44800
3•ColinWright•47m ago•0 comments

San Francisco Weighs PG&E Takeover Amid Soaring Utility Costs

https://www.kqed.org/news/12081882/san-francisco-has-been-trying-to-leave-pge-for-100-years-will-...
12•cdrnsf•51m ago•1 comments

Show HN: Phlox – Open-source self-hosted agentic web chat

https://github.com/robert-mcdermott/phlox
2•mcdermott•52m ago•1 comments

Show HN: A Framework with a Possible Application to Hybrid Cryptography

https://zenodo.org/records/20613435
3•A19dammer91•52m ago•0 comments

AWS WAF now lets content owners charge AI bots for access

https://aws.amazon.com/blogs/aws/aws-waf-adds-ai-traffic-monetization-capability-to-help-content-...
7•mak8•53m ago•0 comments