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

DeepSWE: Measuring frontier coding agents on original, long-horizon SWE tasks

https://deepswe.datacurve.ai/
1•WarmWash•2m ago•0 comments

Sunset of the Consumer Version of Gemini Code Assist on GitHub

https://developers.google.com/gemini-code-assist/docs/deprecations/consumer-code-review
1•raphinou•2m ago•0 comments

Some Comments on "Magnifica Humanitas"

https://bastian.rieck.me/blog/2026/magnifica_humanitas/
1•Pseudomanifold•3m ago•0 comments

AMUD – A lightweight, asynchronous self-hosted application launcher

https://github.com/boubli/AMUD-Dashboard
1•tradmss•3m ago•0 comments

Hackers Asked Meta AI for Passwords. Meta AI Said Yes

https://medium.com/@tbelbek/hackers-asked-meta-ai-for-passwords-meta-ai-said-yes-b17c9129ce1b
2•rdstrtwlkr•4m ago•0 comments

Good type against all odds

https://unsung.aresluna.org/good-type-against-all-odds/
1•firloop•4m ago•0 comments

The Steady Hand at SpaceX Is Not Elon Musk

https://www.nytimes.com/2026/06/04/technology/gwynne-shotwell-spacex.html
3•pretext•6m ago•0 comments

Can These Ads Make You Love A.I.?

https://www.nytimes.com/2026/06/04/style/chatgpt-advertising-campaign-artificial-intelligence.html
2•pretext•6m ago•1 comments

The Small-Business Owners Managing Whole Armies of A.I. Employees

https://www.nytimes.com/2026/06/04/magazine/ai-agents-openclaw-small-business.html
1•pretext•7m ago•0 comments

Mellum2 Technical Report

https://arxiv.org/abs/2605.31268
1•gmays•8m ago•0 comments

How flat is replacing fat in AWS data center networks

https://www.amazon.science/blog/how-flat-is-replacing-fat-in-aws-data-center-networks
1•Tomte•9m ago•0 comments

Certified Pharmaceutical Product Destruction Services in the USA

https://www.trihazsolutions.com/pharmaceutical-waste-disposal/
1•rehmanasghar•9m ago•0 comments

What Bun Can Tell Us About AI, Open Source and Anthropic

https://redmonk.com/sogrady/2026/06/04/bun-two-lessons/
1•mkeeter•10m ago•0 comments

Good

https://www.quarter--mile.com/Really-Good
1•surprisetalk•10m ago•0 comments

Sangam Tamil literature search engine with AI explanations

http://sangam.tamilnlp.com/mp/json/ai.html
1•laxmena•10m ago•0 comments

First clinical pregnancy following AI-based sperm detection and recovery

https://www.thelancet.com/journals/lancet/article/PIIS0140-6736(25)01623-X/fulltext
2•smusamashah•11m ago•0 comments

Garmin: The more miles ridden, the higher avg VO2 max and FTP

https://www.garmin.com/en-US/blog/fitness/the-beat-on-bikes-the-latest-global-trends-from-garmin-...
2•zdkaster•11m ago•0 comments

Cargo-Auditable Support on Ubuntu

https://documentation.ubuntu.com/project/contributors/language-specific/rust/cargo-auditable/
2•petrakat•12m ago•0 comments

Germany: Lufthansa plane suffers nose gear collapse

https://www.dw.com/en/germany-lufthansa-plane-suffers-nose-gear-collapse/a-77423104
1•N19PEDL2•12m ago•0 comments

Reddit Banned Me Without a Goodbye Note. Here's What I Did Wrong

https://medium.com/@lior_34997/reddit-banned-me-without-a-goodbye-note-heres-what-i-did-wrong-602...
3•liorlb•13m ago•2 comments

Uber's commitment to self-driving startup Nuro is close to $500M

https://www.reuters.com/business/autos-transportation/ubers-commitment-self-driving-startup-nuro-...
2•JumpCrisscross•13m ago•0 comments

Top AI CEOs Call for Law Protecting Against Biological Weapons

https://www.wsj.com/politics/policy/top-ai-ceos-call-for-law-protecting-against-biological-weapon...
2•wrsh07•14m ago•1 comments

It's Not Money or Success: Harvard's Longest Study Reveals the Key to Good Life

https://spacedaily.com/m-harvard-good-life-study-strongest-finding/
2•maxloh•14m ago•0 comments

Agent Skill for TDD

https://www.saturnci.com/my-agent-skill-for-test-driven-development.html
2•laxmena•15m ago•0 comments

Brazil's high-tech voting system is losing voters' trust

https://www.economist.com/the-americas/2026/05/31/brazils-high-tech-voting-system-is-losing-voter...
1•edward•16m ago•1 comments

Let us filter AI slop, you cowards

https://www.theverge.com/ai-artificial-intelligence/942909/let-us-filter-ai-slop-google-youtube-m...
1•stalfosknight•17m ago•0 comments

EU should expand to 40 states – including Canada

https://www.cnbc.com/2026/06/04/finland-stubb-eu-canada-turkey-norway.html
12•leopoldj•17m ago•2 comments

Show HN: Creating SQL queries with decision trees

https://inversql.rentruewang.com
1•renchuw•18m ago•1 comments

Rewiring software delivery for the agentic era

https://www.mckinsey.com/capabilities/technology/our-insights/rewiring-software-delivery-for-the-...
1•taubek•19m ago•0 comments

EU Parliament switches to Qwant search engine from Google in sovereignty push

https://www.reuters.com/business/eu-parliament-switch-french-search-engine-google-tech-sovereignt...
1•rvnx•21m ago•2 comments