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?

Zombie 'who owns Unix?' lawsuit comes alive again

https://www.theregister.com/os-platforms/2026/07/06/zombie-who-owns-unix-lawsuit-comes-alive-agai...
1•robin_reala•53s ago•0 comments

Show HN: ssh krnl.duetbrowser.com - a TUI browser with its own layout engine

1•keepamovin•1m ago•0 comments

Full FreeCAD in the browser (+all Fable prompts)

https://magik.net/freecad/
1•devttyeu•1m ago•0 comments

Show HN: Savva – Health Superapp powered by on-device AI

https://www.savva.ai
1•shahamitj•2m ago•0 comments

How to write good prompts: using spaced repetition to create understanding

https://andymatuschak.org/prompts/
1•StefanBatory•2m ago•0 comments

The AI UGC ad math: $2 a video, and the bill nobody prices in

https://okaneland.com/study/ai-ugc-ad-economics/
1•ermantrout•3m ago•0 comments

Jacobian-lens – Companion code for the global workspace interpretability paper

https://github.com/anthropics/jacobian-lens
1•Topfi•5m ago•0 comments

Mild Cardiac Issues Trigger Long-Term Memory Loss

https://neurosciencenews.com/heart-dysfunction-microscopic-brain-decay-30995/
1•bookofjoe•6m ago•1 comments

Four US states are seeking $1.4T in penalties in August youth safety trial

https://www.reuters.com/business/meta-says-us-states-are-seeking-14-trillion-penalties-august-you...
1•elsewhen•6m ago•0 comments

Blue Earth Bathymetry 2.0

http://www.shadedrelief.com/blue-earth-2/
2•marklit•8m ago•0 comments

Show HN: Time Series of India – explorable stories from official payment data

https://timeseriesofindia.com/economy/beats/
1•prtk25•9m ago•0 comments

You shouldn't trust Trusted Publishing

https://blog.yossarian.net/2026/07/07/You-shouldnt-trust-trusted-publishing
2•woodruffw•10m ago•0 comments

AI Still Can't Get Mario's Mustache Right

https://mustache-perfect.vercel.app/
1•nnehdi•11m ago•1 comments

An iroh powered smart fan

https://www.iroh.computer/blog/an-iroh-powered-smart-fan
2•surprisetalk•13m ago•0 comments

Show HN: TrustAI – Suggests and executes automations in bg

https://auto.trytrust.ai/
1•hannahchung•13m ago•0 comments

Setting Up OpenClaw with 100M free tokens via Dahl Global

https://medium.com/@bozicjmasonu4kwfy/a-practical-openclaw-provider-setup-with-dahl-and-gonka-mod...
3•litppicho•15m ago•0 comments

A verification loop 4x'd DeepSeek's intelligence, matching Opus at 1/7 the cost

https://ironbee.medium.com/what-a-verification-loop-adds-to-a-coding-agent-a-first-look-5049017e636e
4•sozal•15m ago•0 comments

Ask HN: How do I find startups hiring developers for low pay and equity?

3•Kathan2651•18m ago•2 comments

EU Cloud Service Providers List

https://www.eucloud.tech/en/eu-providers
1•pelagicAustral•19m ago•0 comments

Observability Design for the AI Era – App, Infra, CI, LLM (Part 1)

https://ryantsuji.dev/posts/ai-observability-design
1•ryantsuji•19m ago•0 comments

How to Ask Good Coding Questions That Get Great Answers (2016)

https://zellwk.com/blog/asking-questions/
2•mooreds•20m ago•1 comments

Show HN: Bastion – self-hosted VMs for background coding agents

https://github.com/bastion-computer/bastion
1•almostlit•21m ago•0 comments

ACM ByteCast Episode 2 Donald Knuth

https://learning.acm.org/bytecast/ep2-donald-knuth
1•Alien1Being•22m ago•0 comments

Get less visible and more European

https://bankosegger.me/blog/get-less-visible/
1•bankombinator•23m ago•0 comments

Managing Development Secrets on a Mac

https://www.yurikoval.com/blog/managing-development-secrets-on-a-mac.html
1•yurikoval•23m ago•0 comments

China's DeepSeek developing its own AI chip, sources say

https://www.reuters.com/world/china/chinas-deepseek-developing-its-own-ai-chip-sources-say-2026-0...
4•limoce•24m ago•0 comments

Long Lost Summers

https://olly.world/long-lost-summers
3•mooreds•24m ago•0 comments

Query Faster, Query Smarter: Our Move to DuckDB and What We Learned

https://medium.com/arcesium-engineering-blog/query-faster-query-smarter-our-move-to-duckdb-and-wh...
2•speckx•25m ago•0 comments

Show HN: Rememori zero-dependency agent memory that runs anywhere JS runs

https://rememori.dev
1•GiorgioDotcom•27m ago•0 comments

Use the alphabet: human-friendly geocoding, unlike what3words

https://ssrn.com/abstract=6879364
1•edmund_day•27m ago•1 comments