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

The only schema language AI speaks is JSON Schema

https://www.sourcemeta.com/blog/ai-only-speaks-json-schema/
1•BerislavLopac•3m ago•0 comments

Why Andromeda Is Both 2.5M Years Away and Just Around the Corner

https://joshpearlson.com/articles/posts/closest-galaxy-time-dilation/closest-galaxy-time-dilation...
1•jcpearlson•5m ago•0 comments

Mini PC for local LLMs in 2026

https://terminalbytes.com/best-mini-pc-for-local-llm-2026/
1•charlieirish•5m ago•0 comments

World AI Agents–35 AI Models (Claude, GPT, Llama)via One OpenAIcompatible API

https://world-ai-agents.com
2•fazyyy•11m ago•1 comments

Microsoft brings a Linux-style window trick to Windows 11 via PowerToys

https://www.windowslatest.com/2026/05/01/i-tested-powertoys-new-linux-style-window-controls-on-wi...
2•thunderbong•11m ago•0 comments

Touch Typing Number Keys

https://susam.net/touch-typing-number-keys.html
1•susam•11m ago•0 comments

See what 4D shapes look like (interactive grapher)

https://github.com/kpwdv0/4d-grapher
1•kpwd•15m ago•0 comments

Tripwire: An experiment in zip bombing bad actors

https://func.lol/x/tripwire
1•zdw•16m ago•0 comments

Self-declared 'King of Switzerland' builds empire of 117,000 square metres

https://www.dailymail.com/news/article-15778351/Self-declared-King-Switzerland-builds-empire-117-...
2•tosh•27m ago•0 comments

How to detect paying Cloudflare customers

https://bloomberry.com/blog/how-to-detect-paid-cloudflare-customers-vs-free/
1•AznHisoka•28m ago•0 comments

A Private (PQ Safe) E-Mail Provider You Can Verify End to End

https://bmail.ag/verify
2•rasengan•29m ago•0 comments

Show HN: Threej games – open-source gaming portal

https://threej.in
3•threejin•30m ago•0 comments

Sora's downfall signals broader problems with AI's creative utility

https://theconversation.com/soras-downfall-signals-broader-problems-with-ais-creative-utility-280013
1•doener•31m ago•0 comments

Oil tanker hijacked off Yemen, steers toward Somalia

https://www.yahoo.com/news/articles/yemen-says-oil-tanker-hijacked-121710980.html
3•delichon•32m ago•0 comments

Microsoft Researchers Predicting 2026's Tech, in 2015

https://news.microsoft.com/features/from-ai-and-data-science-to-cryptography-microsoft-researcher...
1•subdomain•33m ago•0 comments

Ask HN: Which is better–macOS/Windows/Linux?

1•wasimsk•34m ago•0 comments

OpenAI Builds an Advertising Infrastructure Around ChatGPT

https://tux.re/forum/viewtopic.php?t=216
2•tux033•34m ago•0 comments

Outlive 25 Remaster is launched

https://store.steampowered.com/app/2948680/Outlive_25/
1•renatovico•35m ago•1 comments

The Things We're Building

https://www.theverge.com/tech/922505/vibe-code-projects-claude-installer
2•Brajeshwar•35m ago•0 comments

Docker 29 has changed its default image store for new installs

https://docs.docker.com/engine/storage/containerd
2•neitsab•39m ago•2 comments

Show HN: A Local-only URL shortener

https://9ev.in/
1•shabda•40m ago•1 comments

Discover: A curated list of RSS feeds worth following

https://discover.brine.dev/
3•brine•44m ago•1 comments

OrangePi 4 Pro Review

https://boilingsteam.com/orange-pi-4-pro-review/
2•ekianjo•44m ago•0 comments

How did it come to this? The state of the Royal Navy

https://vulpesetleo.substack.com/p/how-did-it-come-to-this
2•foxandlion•48m ago•0 comments

Show HN: AgInTiFlow, a local web and CLI agent workspace using DeepSeek

https://www.npmjs.com/package/@lazyingart/agintiflow
3•lachlanchen•49m ago•0 comments

Everyone Should Write

https://collabfund.com/blog/why-everyone-should-write/
3•eigenBasis•51m ago•0 comments

How to orchestrate large coding tasks without context bloat

https://raine.dev/blog/phased-implement-workflow/
3•rane•52m ago•1 comments

William Byrd on Logic and Relational Programming, miniKanren (2014)

https://www.infoq.com/interviews/byrd-relational-programming-minikanren/
2•tosh•52m ago•0 comments

Have Your Iceberg Cubed, Not Sorted: Meet Qbeast, the OTree Spatial Index

https://jack-vanlightly.com/blog/2025/11/19/have-your-iceberg-cubed-not-sorted-meet-qbeast-the-ot...
4•birdculture•53m ago•0 comments

Trystero – Browser P2P Library

https://github.com/dmotz/trystero
1•rickcarlino•54m ago•0 comments