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?

Crucible-Audit: Read-only, air-gapped pre-migration DB profiler and dbt compiler

https://github.com/oranmcclintock/Crucible-MaaS-Engine
1•sweeny213•1m ago•0 comments

Of all the creatures in the sea, LLMs seem to love cuttlefish the most

https://www.artfish.ai/p/ai-aquarium
1•yenniejun111•1m ago•0 comments

Show HN: Belay – deterministic semantic diffs of what a coding agent changed

https://github.com/Allexsen/belay
1•allexsendev•1m ago•0 comments

Show HN: Telesma – an autonomous development loop for Claude Code

https://github.com/mario12358/telesma
1•mariusziskra•1m ago•0 comments

Show HN: Avva – Compress your expertise available to AI agent via MCP

https://avva.chat/
1•kdobrinov•2m ago•0 comments

Lazy, useless people are hiding behind AI

https://www.nicharalambous.com/blog/lazy-useless-people-hiding-behind-ai
1•speckx•3m ago•0 comments

The Randomized K-Server Conjecture Is False

https://cacm.acm.org/research-highlights/the-randomized-k-server-conjecture-is-false/
1•frostbyte7•3m ago•0 comments

Hkust 3D Prints a Titanium Alloy That Keeps Hardening

https://3dprinting.com/news/hkust-researchers-3d-print-a-titanium-alloy-that-keeps-hardening-unde...
1•rbanffy•3m ago•0 comments

DEVONtechnologies – EasyFind

https://www.devontechnologies.com/apps/freeware/easyfind
1•7839284023•4m ago•1 comments

Mathematics in the Age of AI

https://royalsociety.org/news-resources/publications/2026/mathematics-in-the-age-of-ai/
1•Anon84•5m ago•0 comments

Type errors cost our coding agents under 1% of their time

https://evilmartians.com/chronicles/type-errors-cost-our-coding-agents-under-one-percent-of-their...
1•tilt•8m ago•0 comments

Propanol: Deadly Hover Racing

https://store.steampowered.com/app/5158560/Propanol/
1•dams-labs•9m ago•0 comments

Class Action: Optimum Adds Junk Fee to Advertised Prices for Internet Service

https://www.classaction.org/news/optimum-adds-a-junk-fee-to-advertised-prices-for-internet-servic...
1•DeepLogin•10m ago•0 comments

Effective Altruism bought off the media for the Nvidia Hoax

https://twitter.com/AmOptimistShow/status/2125344162815836440
1•MrBuddyCasino•11m ago•0 comments

Trusted Timestamping

https://en.wikipedia.org/wiki/Trusted_timestamping
1•vismit2000•13m ago•0 comments

Patton's Speech to the Third Army

https://www.5ad.org/Patton_speech.htm
1•matltc•13m ago•0 comments

OmniBuf: Keep .proto schemas but replace Protobuf's binary wire format

https://kmcd.dev/posts/omnibuf/
1•ingve•15m ago•0 comments

Notes from the Belly of the Whale: AI's Need for Humanism

https://browsercompany.substack.com/p/notes-from-the-belly-of-the-whale
1•FinnLobsien•15m ago•0 comments

Playbit: A better foundation for personal software

https://playbit.app/
1•surprisetalk•15m ago•0 comments

Show HN: Aethel WAF – A Bare-Socket Web Application Firewall in SWI-Prolog

https://prologwaf.site/
1•lokinpendawa•16m ago•0 comments

Sounds Like a Little Chaos

https://elevenmusic.io/blog/sounds-like-a-little-chaos
1•sigvef•16m ago•0 comments

It Is a BrandedQR Generator

https://app.grbsystem.com
1•gilsonbellon•16m ago•1 comments

What Is WSP MCP? A Free WordPress Plugin to Manage Websites with AI

https://github.com/bilalnaseer/wsp-wordpress-mcp
1•wspmcp77•18m ago•0 comments

Oil and shipping tankers hacked in recent weeks, per report

https://techcrunch.com/2026/11/24/dozens-of-oil-and-shipping-tankers-hacked-in-recent-weeks-per-r...
1•speckx•22m ago•0 comments

Show HN: Hub, an open-source coordinator for Claude Code and Codex sessions

https://github.com/icons8/hub
1•kalimullin•23m ago•1 comments

Show HN: DuckDB client side AI spreadsheet

https://plexisai.vercel.app/
1•samarjoseph12•26m ago•0 comments

Google Built a Giant 'Mirror Dimension' Internet to Test Its Chrome AI Agents

https://www.wired.com/story/google-built-a-giant-mirror-dimension-internet-to-test-its-chrome-ai-...
1•noorsimar•26m ago•0 comments

Show HN: Clary reads iOS notifications in the sender's voice and keeps a history

https://hiclary.com/
2•vignesh_warar•27m ago•0 comments

Fund browser-grade certificate checking for every TLS client

https://upki.rustls.dev/funding.html
1•wofo•28m ago•0 comments

Dangerously Skip Permissions (Song)

https://suno.com/song/890b8848-6001-4d47-b1f6-76767070cf50
1•ekadet•29m ago•0 comments