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•8mo 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•8mo 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: I built an AI tool to turn app screenshots into device mockups fast

https://mockup-make.com/
1•ximu•1m ago•0 comments

Asus officially announces price hikes from January 5, right before CES 2026

https://videocardz.com/newz/asus-officially-announces-price-hikes-from-january-5-right-before-ces...
2•smurda•3m ago•0 comments

African Startup Events Calendar (2025–2026)

https://startupmapafrica.com/events/african-startup-events-2025-2026
1•muriithiKabogo•5m ago•1 comments

Blood-cleansing method faces its first test as cancer vaccine – Science – AAAS

https://www.science.org/content/article/blood-cleansing-method-faces-its-first-test-cancer-vaccine
1•rbanffy•6m ago•0 comments

In the Arctic, Drones Help Identify Deadly Virus in Whales

https://www.nytimes.com/2026/01/02/science/arctic-drones-whales-virus.html
1•mistersquid•10m ago•0 comments

Should US Homebuilders Emulate Sweden? – By Brian Potter

https://www.construction-physics.com/p/should-us-homebuilders-emulate-sweden
1•rbanffy•10m ago•0 comments

My "job" as family admin or Linux rules the house

https://blog.bembel.net/2025/12/my-job-as-family-admin-or-linux-rules-the-house/
1•todsacerdoti•12m ago•0 comments

GitHub-Store: App store for GitHub releases

https://github.com/rainxchzed/Github-Store
1•csmantle•15m ago•0 comments

Show HN: I built a clipboard tool to strip/keep specific formatting like Italics

https://custompaste.com
1•EvaWorld9•15m ago•0 comments

Show HN: ViviGener – Free AI Prompt Template Library and Community

1•kuangzk1•16m ago•0 comments

Show HN: Hindsight – GitHub-style Git yearly activity visualizer in terminal

https://github.com/chaosprint/hindsight
1•chaosprint•16m ago•0 comments

If AI doesn't measurably improve anything, it should stop talking

https://zenodo.org/records/18100154
1•DELTA-X•16m ago•0 comments

Show HN: Steganography in natural language using LLM logit-rank steering

https://github.com/shevisj/subtext-codec
1•shevis•17m ago•0 comments

Observations from 2025 for Eng Leaders

https://avivbenyosef.com/10-observations-from-2025-for-eng-leaders/
1•avivby•20m ago•0 comments

I switched away from Zig to C3

https://lowbytefox.dev/blog/from-zig-to-c3/
1•lerno•25m ago•0 comments

You Can Look It Up: A Threnody for the Dictionary

https://www.commentary.org/articles/joseph-epstein/dictionary-lexicography-threnody/
1•bryanrasmussen•26m ago•0 comments

Tupolev Tu-4

https://en.wikipedia.org/wiki/Tupolev_Tu-4
1•tosh•27m ago•0 comments

From 100 AI Tools to 4: My Prod Stack

https://www.decodingai.com/p/my-ai-production-tech-stack
1•pauliusztin•30m ago•0 comments

Capital in the 22nd Century

https://philiptrammell.substack.com/p/capital-in-the-22nd-century
2•bilsbie•30m ago•0 comments

My setup, and why tmux workflow is better than ever

https://raine.dev/blog/my-tmux-setup/
3•rane•31m ago•0 comments

V.H. Belvadi – Setting Up Zotero with WebDAV • (Venkatram Harish Belvadi)

https://vhbelvadi.com/zotero-webdav
1•janandonly•31m ago•0 comments

Archlinux.org Is Down

https://archlinux.org
1•LordRatte•33m ago•0 comments

One of America's Most Successful Experiments Is Coming to a Shuddering Halt

https://www.nytimes.com/2025/12/29/opinion/indian-americans-trump.html
2•duxup•34m ago•1 comments

Deep Dive into HLS: Why This 'Ancient' Protocol Still Rules the Streaming World

https://m3u8-player.net/en/blog/deep-dive-hls-protocol-architecture/
3•wangneo276•47m ago•0 comments

A Comment-Preserving Cabal Parser

https://blog.haskell.org/a-comment-preserving-cabal-parser/
3•Vosporos•47m ago•0 comments

Personalization from Matrix Factorization to LLMs

https://www.rudderstack.com/blog/future-of-personalization-matrix-factorization-llms/
1•rudderdev•49m ago•0 comments

Condom tax and cheaper childcare: China's plan to boost birth rates

https://www.bbc.com/news/articles/czxpk7r8w9yo
1•Qem•50m ago•1 comments

Rent a Mac M4 Mini and Access It via SSH from Linux

https://www.vincentschmalbach.com/rent-a-mac-m4-mini-and-access-it-via-ssh-from-linux/
1•vincent_s•51m ago•0 comments

Multimodal embeddings outperform text on visual docs but lose on pure text

https://agentset.ai/blog/multimodal-vs-text-embeddings
1•midamurat•52m ago•0 comments

Things Will Douglas Heaven Is Into

https://www.technologyreview.com/2026/01/02/1129409/will-douglas-heaven-el-estepario-siberiano-ed...
1•fleahunter•54m ago•0 comments