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?

Rustuna: A High-Performance Rust Implementation of Optuna

1•c-bata•41s ago•0 comments

Iris: Climbing to the Search Frontier

https://arxiv.org/abs/2609.04304
1•codelion•1m ago•0 comments

I turned my 2018 Redmi Note 5 Pro into a Kali NetHunter platform for $0

https://www.reddit.com/r/Kalilinux/comments/1w45o8r/i_turned_my_2018_redmi_note_5_pro_into_a_kali/
1•syumei•2m ago•0 comments

GPT-6 Astra demos: Games, Blender, websites and video workflows

https://github.com/magiccreator-ai/awesome-gpt-6-astra
1•Kevin_Guo•5m ago•0 comments

Astra has beat all 48 levels of Neal.fun's "I'm Not a Robot" game

https://twitter.com/sharifshameem/status/2096847916837314853
1•smusamashah•5m ago•0 comments

Show HN: DepWarden – free, anonymous dependency vulnerability scanner

https://depwarden.in/blog/npm-pypi-typosquatting-2026-report
1•rushabh5000•5m ago•0 comments

Resend · Email for Developers

https://resend.com
1•thunderbong•9m ago•0 comments

We Can't Know Our A.I. Future If We Don't Study It

https://www.nytimes.com/2026/09/06/opinion/ai-social-sciences.html
1•vinni2•10m ago•0 comments

Mesamatrix: The Mesa Drivers Matrix

https://mesamatrix.net/
1•natureglass•13m ago•0 comments

Impedance Matching

https://www.edge.org/response-detail/27238
1•muti•16m ago•0 comments

Show HN: JarPeek – Online Java Class Decompiler(No Upload)

https://jarpeek.com/class-decompiler
1•xooch_95•17m ago•0 comments

Show HN: Hayduk, a browser-based Metasploit GUI inspired by Armitage

https://github.com/jolovicdev/hayduk
1•jolovicdev•22m ago•0 comments

Learning Synths – Ableton

https://learningsynths.ableton.com/
1•vsvagr•23m ago•0 comments

25 years ago, two strangers met in the twin towers and escaped on 9/11

https://www.theguardian.com/us-news/2026/sep/07/strangers-twin-towers-escape-september-11
1•ljf•23m ago•0 comments

Show HN: Guile-Secure Your Stack

https://guile.in
2•Harsha2193•27m ago•0 comments

Joining Advanced Machine Intelligence to work on world models

https://www.lihaoyi.com/post/JoiningAMItoworkonWorldModels.html
2•plun9•31m ago•0 comments

How to Write Tech Doc

https://essays.nigri.dev/How-to-write-tech-doc
3•napo•31m ago•0 comments

South Atlantic Anomaly

https://en.wikipedia.org/wiki/South_Atlantic_Anomaly
2•robin_reala•34m ago•0 comments

'You Can See Everything' Review: Nathan Fielder's Doc About Elizabeth Holmes

https://variety.com/2026/film/reviews/nathan-fielder-surprise-film-telluride-elizabeth-holmes-123...
15•cianmm•35m ago•1 comments

JavaScript installer pnpm recast in Rust because ECMAScript can't keep up

https://www.theregister.com/devops/2026/09/04/javascript-installer-pnpm-recast-in-rust-because-ec...
2•pjmlp•35m ago•0 comments

Caltech Mathathon – first hackathon ever devoted to research level mathematics

https://mathathonchallenge.com/index.html
2•astroanax•42m ago•0 comments

Speculative Decoding in vLLM on AMD GPUs

https://vllm.ai/blog/2026-08-23-speculative-decoding-amd-gpus
4•ankitg12•42m ago•0 comments

Trump unveils Space Force uniform inspired by Nazi-aesthetic film

https://www.telegraph.co.uk/us/politics/2026/09/07/donald-trump-space-force-uniform-nazi/
6•doener•43m ago•1 comments

Raptor turns Claude Code into a general-purpose AI

https://github.com/gadievron/raptor
2•mitifo5226•44m ago•1 comments

Show HN: Forget Rigid Stock Screeners – A Universal Query API for Financial Data

https://financialdata.net/universal-query
2•_FDN_•44m ago•0 comments

GPT 6 created a new universe [video]

https://www.youtube.com/watch?v=5ldy0Rfx8gA
2•modinfo•46m ago•0 comments

Plastics Companies Are Writing Lesson Plans. What Could Go Wrong?

https://www.wired.com/story/plastics-companies-writing-lesson-plans-what-could-go-wrong/
2•beardyw•46m ago•0 comments

Ask HN: Do People Care About Image Optimisation Anymore?

2•CM30•47m ago•0 comments

Train your own custom Tiny TTS model from scratch overnight on consumer hardware

https://github.com/franciscocarloserra/ttslibre
2•FranciscoCarlos•48m ago•0 comments

Ask HN: How do you keep AI coding agents in sync with a changing Figma file?

2•rjvidentia•52m ago•0 comments