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

Show HN: Katipo is a minimal alternative internet with a Vulkan based browser

https://github.com/mjdave/katipo
1•majicDave•1m ago•0 comments

Palo Alto Networks Expands Identity Security with CyberArk Deal and TASE Listing

https://finance.yahoo.com/news/palo-alto-networks-expands-identity-091230669.html
1•Khaine•1m ago•0 comments

India's pollution is becoming an economic roadblock

https://www.economist.com/asia/2026/02/15/indias-pollution-is-becoming-an-economic-roadblock
1•andsoitis•2m ago•0 comments

Show HN: OpenSlimedit – Cut AI coding token usage by 21-45% with zero config

https://github.com/ASidorenkoCode/openslimedit
1•aSidorenkoCode•5m ago•0 comments

Why do I not use "AI" at OSNews?

https://www.osnews.com/story/144405/why-do-i-not-use-ai-at-osnews/
1•cdvonstinkpot•5m ago•0 comments

Show HN: Image to Photo

https://imagetophoto.com
1•wangmao•7m ago•0 comments

A NEW Windows‑native SSH agent

https://github.com/Sanmilie/PKCS11SSHAgent
1•Sanmilie•10m ago•1 comments

EPA ends credits for automatic start-stop vehicle ignition

https://apnews.com/article/climate-zeldin-automakers-vehicles-consumers-dca74900298e45485987b87c3...
2•geox•11m ago•1 comments

ASUKA.md – The SOUL.md for Eva Asuka

https://asuka.md
1•jetsquirrel•14m ago•1 comments

Live Variables in the Verse Language

https://twitter.com/vukefn/status/2022809591051096233
1•DustinEchoes•20m ago•1 comments

Arm wants a bigger slice of the chip business

https://www.economist.com/business/2026/02/12/arm-wants-a-bigger-slice-of-the-chip-business
1•andsoitis•22m ago•0 comments

Michelangelo Made His First Masterpiece When He Was 12 Years Old

https://www.thisiscolossal.com/2026/01/michelangelo-first-painting-torment-of-saint-anthony/
1•andsoitis•25m ago•0 comments

I tried to prompt-engineer a writing style and got a psychoanalysis instead

https://executelater.substack.com/p/how-i-taught-claude-to-write-like
1•NarratorTD•31m ago•1 comments

2026, the Last Year of the AI Bubble

https://medium.com/predict/2026-the-last-year-of-the-bubble-the-ai-empire-begins-to-crumble-1bb5e...
3•WaitWaitWha•36m ago•2 comments

AI Is Getting Scary Good at Making Predictions

https://www.theatlantic.com/technology/2026/02/ai-prediction-human-forecasters/685955/
1•vinhnx•36m ago•1 comments

Getting the Main Thing Right

https://www.seangoedecke.com/getting-the-main-thing-right/
1•Garbage•37m ago•0 comments

Printing Films Archive

https://printingfilms.com
1•vinhnx•37m ago•0 comments

EpsteinDB – Making the Epstein Files More Searchable

https://epsteindb.com/
1•Lbesecker195•37m ago•1 comments

Show HN: Talk2Code – Text your codebase from your phone (~150 lines of Python)

https://github.com/dchisholm125/Talk2Code
1•dchisholm125•42m ago•1 comments

Show HN: Ls-f a fast, zero-dependency ls with Nerd Font icons (Rust rewrite)

https://github.com/swadhinbiswas/ls-f
1•0x0003r•43m ago•0 comments

I manage my Guix System configs

https://www.terracrypt.net/posts/guix-config.html
1•todsacerdoti•43m ago•0 comments

Test my live Tempest AI Metrics Dashboard on the web

http://davepl.dyns.org:8765/
1•davepl•45m ago•0 comments

Show HN: MultiWA - Open-source self-hosted WhatsApp API Gateway

https://github.com/ribato22/MultiWA
1•ribato•45m ago•0 comments

Trapped in the Hell of Social Comparison

https://www.noahpinion.blog/p/trapped-in-the-hell-of-social-comparison
1•herbertl•47m ago•0 comments

Show HN: Self-hosted alternative to Goodreads. Own your reading data

https://github.com/raghavan/BookSync
2•raghavankl•50m ago•1 comments

Artificial Intelligence and Magical Thinking

http://edwardfeser.blogspot.com/2019/03/artificial-intelligence-and-magical.html
2•b-man•58m ago•0 comments

I built a 3D racing engine that runs on an ESP32-S3 (8MB PSRAM)

https://medium.com/@davidmonterocrespo24/how-i-built-the-first-3d-racing-game-for-esp32-s3-becaus...
1•dmonterocrespo•58m ago•1 comments

AI Agents Are Making Software More Like Biology

https://twitter.com/pablofariasnew/status/2023212613015150657
3•zenva•1h ago•2 comments

Old School Telecine, circa 1980s (2017)

https://www.liftgammagain.com/forum/index.php?threads/old-school-telecine-circa-1980s.9984/
2•exvi•1h ago•0 comments

Keep screenshots/automation working while the MacBook lid is closed

1•xtongs•1h ago•1 comments