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

Open-source Express.js dev panel for routes and request logs

https://www.npmjs.com/package/express-dev-panel
1•dvsxdev•1m ago•0 comments

Engineering as Humanity's Highest Achievement

https://walkingtheworld.substack.com/p/engineering-as-humanitys-highest
1•hermitcrab•7m ago•0 comments

Three Cultures of Math

https://rkirov.github.io/posts/three-cultures-of-math/
1•mathgenius•8m ago•0 comments

Chess.com produces 3500 ton of CO2 in air for loading JavaScript bundles

https://www.chess.com/
1•emifo3•10m ago•1 comments

Mlx-serve – run LLMs natively on your Mac

https://ddalcu.github.io/mlx-serve/
1•wrxd•12m ago•0 comments

Outlook on Windows silently scales your email by 1.5×

http://picmel.com/blog/outlook-dpi-scaling-bug
1•rudixworld•12m ago•0 comments

Show HN: Query years of Ask HN and Show HN discussions as a knowledge graph

https://github.com/hash-anu/lightrag-snkv
1•swaminarayan•13m ago•0 comments

AI cost optimization tool "distillfast.com"

1•ashuashpawar•21m ago•1 comments

UtaForth – 303-byte 16-bit Forth in pure Netwide Assembler

https://github.com/Fuwn/UtaForth
1•irdc•25m ago•1 comments

LLMs Won't Replace Programming Languages

https://mech-lang.org/post/2025-01-09-programming-chatgpt/
1•tosh•26m ago•0 comments

Rotten Dot Com

https://www.theparisreview.org/blog/2026/05/06/rotten-dot-com/
18•lordgrenville•34m ago•5 comments

Machine Learning Offers Faster, More Reliable Analysis of Fermi Surfaces

https://www.tus.ac.jp/en/mediarelations/archive/20260417_0478.html
1•rustoo•35m ago•0 comments

Arm, the UK and Apple

https://thechipletter.substack.com/p/arm-the-uk-and-apple
2•klelatti•36m ago•0 comments

LLMorphism: When humans come to see themselves as language models

https://arxiv.org/abs/2605.05419
2•okey•38m ago•0 comments

Real signals or artificial stereotypes? Adventures with a cultural Copilot

https://kucharski.substack.com/p/real-signals-or-artificial-stereotypes
2•ceejayoz•44m ago•0 comments

In a quest to becoming AI independent

https://adlrocha.substack.com/p/adlrocha-in-a-quest-to-becoming-ai
4•adlrocha•54m ago•0 comments

Show HN: Tinyblok – publishes conditioned sensor data to NATS from an ESP32

https://github.com/lexvicacom/tinyblok
2•alexjreid•54m ago•0 comments

RISC-V Serial Debug Protocol Specification (Draft)

https://gitlab.com/lauterbach/riscv-rsdp-spec
2•jonesjohnson•56m ago•0 comments

Gen Z Resentment Toward AI Grows as Adoption Stagnates and Workplace Fears Mount

https://www.waltonfamilyfoundation.org/about-us/newsroom/gen-z-resentment-toward-ai-grows-as-adop...
5•mgh2•57m ago•0 comments

Eve

https://witheve.com/
2•tosh•58m ago•0 comments

Infinitary Logic

https://en.wikipedia.org/wiki/Infinitary_logic
1•soupspaces•1h ago•0 comments

DMA: A Community Hackerspace in Seattle

https://dma.space
1•bleeperblooper•1h ago•0 comments

Cursor CVE-2026-26268: Hidden Git hooks RCE via agents autonomous Git operations

https://nvd.nist.gov/vuln/detail/CVE-2026-26268
3•Armor1AI•1h ago•0 comments

JavaScript Tail Call Optimization in ES2015: Unimplemented and Stack Issues

https://blog.gaborkoos.com/posts/2026-05-09-Your-Recursion-Is-Lying-to-You/
1•birdculture•1h ago•0 comments

A Day in the Life of an "Enshittificator" (Norwegian Consumer Council) [video]

https://www.youtube.com/watch?v=T4Upf_B9RLQ
2•marojejian•1h ago•0 comments

From RSS Feeds to Atom Feeds

https://susam.net/from-rss-to-atom.html
1•susam•1h ago•0 comments

Show HN: Free Google Places API alternative using OpenStreetMap (no API key)

https://bizdata-web.vercel.app
5•johnleslie_pm•1h ago•0 comments

Thinking of the Children

https://blog.viewfromtheweb.com/thinking-of-the-children-4ed324d5/
1•rickdg•1h ago•0 comments

Show HN: Great Little Software – interviews with solo developers

https://greatlittle.software/
2•valeriavg_dev•1h ago•1 comments

LibreOffice 26.4 Beta Experiments with AI Writing Features

https://www.linuxjournal.com/content/libreoffice-264-beta-experiments-ai-writing-features-and-sma...
3•throw_await•1h ago•0 comments