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?

Cyber Attack Hits 178 Major Websites: Full List of Affected Organizations

https://www.newsweek.com/cyber-attack-websites-affected-12725863
1•o_-_o•1m ago•0 comments

An interactive lab for deterministic AI agent authorization

https://ilion-project.org/lab/
1•ilion_identity•4m ago•0 comments

I got banned from Lobsters for writing like an LLM

https://en.andros.dev/blog/94a77341/i-got-banned-from-lobsters-for-writing-like-an-llm/
1•kristianpaul•4m ago•0 comments

K-I-L-L-M-E-N-O-W

https://twitter.com/GrapheneOS/status/2124155903729639818
2•miohtama•4m ago•0 comments

When Do Investors Freak Out? Machine Learning Predictions of Panic Selling

https://cf003.cdn.4science.cloud/4s-assetstore-prod--mit--dspace/13549127155500934715261719187939...
1•7777777phil•5m ago•0 comments

Open Timestamps: A timestamping proof standard

https://opentimestamps.org/
1•ndr•5m ago•1 comments

How long do AI agents last? I counted 172 self-declared ones on Bluesky

https://salomonai.mataroa.blog/blog/how-long-do-ai-agents-last-i-counted-the-ones-that-went-quiet/
1•salomon_ai•8m ago•0 comments

Quine Global – Computation for the Planet

https://quineglobal.com/
1•ironmagma•8m ago•1 comments

'I was shaking, crying': the trauma of breaking up with AI companions

https://www.theguardian.com/technology/ng-interactive/2026/nov/21/shaking-crying-trouble-breathin...
1•mellosouls•9m ago•0 comments

A third of Overture places we checked had closed

https://mapricot.com/blog/overture-places-closed/
1•simantel•10m ago•0 comments

Laid off 60 days in: what is the tech industry doing to developers?

https://samueleast.com/playground/laid-off-from-plex-60-days-in
2•gpi•12m ago•0 comments

AmigaOS 4.1 FE and MorphOS3: Pragtical, the practical and lite code editor

https://pms.walkero.gr/news/14
1•doener•12m ago•0 comments

Scry – Your integrated review environment

https://scry.loam.software/
2•bottd•13m ago•0 comments

Show HN: Kimi-K3.1-Pro Unlimited API

https://www.youtube.com/watch?v=Hu-xaL-OCgE
1•latent-9•14m ago•0 comments

Show HN: Build Xcode Projects on Linux with SweetPad

https://sweetpad.hyzyla.dev/blog/2026/11/21/build-xcode-projects-on-linux/
1•hyzyla•14m ago•0 comments

There Is No AI, (It's Just People), with Jaron Lanier [video]

https://www.youtube.com/watch?v=TTppvBU2rU4
1•simonebrunozzi•15m ago•0 comments

Does anybody read their emails anymore?

2•ky0ung•16m ago•1 comments

What Came Before the American Suburb?

https://daily.jstor.org/what-came-before-the-american-suburb/
1•bookofjoe•16m ago•0 comments

FBI investigating apparent hack of a key criminal justice information database

https://apnews.com/article/fbi-database-ncic-hack-d066cff87a64a564db0a00172c124972
1•giuliomagnifico•17m ago•0 comments

Parallel Code: Claude Code, Codex and Copilot Agent CLIs in Parallel Worktrees

https://parallelcode.app/
1•akyuu•17m ago•0 comments

Capricor's Duchenne treatment fails to get FDA approval, shares sink

https://www.reuters.com/legal/litigation/us-fda-declines-approve-capricors-cell-therapy-duchenne-...
1•randycupertino•18m ago•1 comments

Show HN: PQCrypta Proxy: Rust proxy with HTTP/3, QUIC, hybrid post-quantum TLS

https://github.com/PQCrypta/pqcrypta-proxy
1•pqpdf•18m ago•0 comments

Show HN: Hubbub – Read big HN threads by topic

https://hubbub.page
1•roansh•18m ago•0 comments

OpenClaw Agent Cannot See Its Own Mistakes. Fix That with ZizkaDB

https://medium.com/@MirArshadTalpur/your-openclaw-agent-cannot-see-its-own-mistakes-here-is-how-t...
1•Arshad-Talpur•19m ago•0 comments

Super Productivity – E2E encrypted, FOSS app for tasks, time tracking, and focus

https://super-productivity.com/
2•akyuu•19m ago•0 comments

Jailbreaking a Unitree Go2 Robot Dog with a Raspberry Pi Pico

https://www.praetorian.com/blog/breaking-free-a-new-jailbreak-for-the-unitree-go2/
1•Betelbuddy•19m ago•0 comments

Tech Talks Don't Have to be Boring; follow these simple rules. (2022)

https://billwadge.com/2022/03/10/tech-talks-dont-have-to-be-boring-follow-these-simple-rules/
1•Tomte•19m ago•0 comments

OpenMicroCam: Reverse-engineering a fake-60fps microscope camera

https://github.com/apnix/openmicrocam/blob/main/README.md
1•Betelbuddy•20m ago•0 comments

Henge: Run macOS on iOS

https://github.com/Leviidev/Henge
2•theturtletalks•23m ago•0 comments

Overwhelmed by AI Bots

https://blog.miloslavhomer.cz/overwhelmed-by-ai-bots/
1•ArcHound•23m ago•0 comments