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?

Multicore TypeScript, Inspired by Rust's Rayon

https://geastack.com/blog-parallel-typescript
1•arbayi•48s ago•0 comments

Do minor curl vulnerabilities in the open

https://daniel.haxx.se/blog/2026/10/20/do-minor-curl-vulnerabilities-in-the-open/
1•birdculture•53s ago•0 comments

AI Portability in 2026: Breaking Up Is Hard to Do

https://peckjon.substack.com/p/ai-portability-in-2026
1•peckjon•1m ago•0 comments

The AI-Hacking Apocalypse Began Last Night

https://www.theatlantic.com/technology/2026/10/ai-hacking-apocalypse-began-last-night/689106/
1•zzzeek•3m ago•0 comments

Tinder Reverse Engineered

https://twitter.com/TheDonAyo/status/2112591782857109809
1•mrkn1•7m ago•0 comments

Ollama flint requires 0.40.8 but most recent is 0.40.7

1•roscas•8m ago•0 comments

Show HN: Yantra – Interactive step-by-step diagrams as one offline HTML file

https://github.com/niyankhadka/yantra
1•niyankhadka•10m ago•0 comments

Developers Are Dumbing Down Their Smart TVs

https://www.extremetech.com/electronics/developers-are-dumbing-down-their-smart-tvs
2•speckx•11m ago•2 comments

NPWS ask for vigilance after red kite poisoning in Carlow

https://www.rte.ie/news/regional/2026/1021/1596338-red-kite-carlow/
1•austinallegro•12m ago•0 comments

After automation: Solo founding will be the default

https://every.to/thesis-statements/julian-weisser
3•rmason•14m ago•1 comments

Ask HN: Caution on using AI security platforms for repositories.

1•BehanPrW•15m ago•0 comments

Claude Duet

https://claude.com/resources/articles/claude-duet
5•zaevlad•18m ago•2 comments

Physicists trap a single antimatter particle for a month

https://www.scientificamerican.com/article/physicists-trap-a-single-antimatter-particle-for-a-month/
1•mooreds•19m ago•1 comments

Research Preview of Claude Duet

https://twitter.com/claudeai/status/2112984664256241837
1•davidgomes•19m ago•1 comments

How to Fix PHP2Shell (CVE-2026-109618 and CVE-2026-109619)

https://containersecurity.dev/blog/how-to-fix-php2shell
1•aerabi•21m ago•0 comments

Vulnerabilities in PHP Affecting Cisco Products: October 2026

https://sec.cloudapps.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-php-octobe...
1•speckx•21m ago•0 comments

4 Wheel Steering Is a Nightmare

https://simulation.michelin.com/canopy/technical-articles/4-wheel-steering-is-a-nightmare
1•shpx•23m ago•0 comments

iPhone Duo Review with CT scan [video]

https://www.youtube.com/watch?v=o1qc29t04GI
1•tekacs•24m ago•0 comments

Plex laid off the whole player team

https://forums.plex.tv/t/2026-20-0-beta-ios-and-tvos-4k-dovi-hdr10-won-t-play-infinite-spinning-c...
29•zzyzxd•27m ago•12 comments

Ask HN: How will programming language design change as more code comes from AI?

2•pelican0•27m ago•0 comments

LLM-D 1.0 Takes Open-Source Kubernetes AI Inference into Production

https://techstrong.ai/ai-infrastructure/llm-d-1-0-takes-open-source-kubernetes-ai-inference-into-...
2•CrankyBear•27m ago•0 comments

Show HN: Is there a YC advantage for sales?

https://elegant-chebakia-7aee64.netlify.app/
1•30minAdayHN•28m ago•0 comments

A story of a Figma bug that wasn't a bug at all (2021)

https://aresluna.org/this-is-a-story-of-a-figma-bug/
1•jllyhill•28m ago•0 comments

Apple's Touchscreen OLED MacBook Pro: Everything We Know

https://www.macrumors.com/guide/touchscreen-macbook-pro/
2•mahboi•29m ago•2 comments

The $15B 'viral' AI startup changing how American doctors treat patients

https://www.ft.com/content/0ed17b79-47dd-4ad8-8dca-44eb35617edc
2•bazzmt•30m ago•0 comments

Security Through Obscurity Is Dead and LLMs Killed It – Brendan Dolan Gavitt [video]

https://www.youtube.com/watch?v=8rOY3aD1yxY
3•arto•30m ago•0 comments

Problematic social media use: Attachment, Narcissism, and interpersonal skills

https://journals.plos.org/plosone/article?id=10.1371/journal.pone.0359569
2•PaulHoule•30m ago•0 comments

Making a Career in Dictatorship

https://aworkinglibrary.com/reading/making-a-career-in-dictatorship
1•Tomte•31m ago•0 comments

Meta hit with $25B penalty for deceiving users about privacy on Facebook

https://nmdoj.gov/press-release/the-new-mexico-department-of-justice-secures-another-landmark-vic...
4•DeepLogin•32m ago•2 comments

Sulfur, Right There All Along

https://www.science.org/content/blog-post/sulfur-right-there-all-along
2•dverlaeckt80•33m ago•0 comments