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: Give Your AI the Ability to Find, Install, and Use Skill Autonomously

1•twwch•2m ago•0 comments

Who Approved This Agent? A book on authorizing AI-generated code

1•humanatsetc•4m ago•0 comments

Building the last peace of handware glovable.dev

https://glovable.dev
1•rommin•6m ago•0 comments

Show HN: Safeoid – Turn Messy PDFs into Structured Excel, CSV, or JSON

https://safeoid.com/
1•edukid•11m ago•1 comments

Comic Code Reviews, Part 2

http://www.jona.ca/2026/02/comic-code-reviews-part-2.html
1•JonathanAquino•18m ago•1 comments

Show HN: EdgeAI-OS – Air-gapped Linux distro where AI is a system primitive

1•neuralweaves•19m ago•0 comments

Ask HN: Since when got my computer their cloud node (agent)

1•rumpelstiel•20m ago•0 comments

Show HN: Agentseed – Generate Agents.md from a Codebase

https://github.com/avinshe/agentseed
1•avinshe•22m ago•0 comments

Big Tech groups race to fund unprecedented $660B AI spending spree

https://www.ft.com/content/d503afd5-1012-40f0-8f9d-620dcb39a9a2
2•petethomas•22m ago•0 comments

Show HN: Klint – Linux Kernel Security Scanner

http://saturnine.cc/klint/
1•h2337•25m ago•0 comments

Field Notes from a Senior Living Center

https://substack.com/@beccaselah/p-181168438
2•bkudria•26m ago•0 comments

America's Most Valuable Companies 1995-2023

https://americanbusinesshistory.org/americas-most-valuable-companies-1995-2023/
2•js2•32m ago•0 comments

Private 4G LTE Network for Your Embedded System and IoT Hacking Lab via Open5GS

https://gainsec.com/2025/10/08/setting-up-your-own-4g-lte-network-150-for-your-embedded-system-io...
2•teleforce•47m ago•1 comments

Nobody knows how the whole system works

https://surfingcomplexity.blog/2026/02/08/nobody-knows-how-the-whole-system-works/
4•azhenley•47m ago•0 comments

O_DIRECT – The Problem That Grew Up with Multi-Threading

https://zazolabs.com/odirect-the-problem-that-grew-up/
1•GalaxySnail•49m ago•0 comments

Show HN: Valk programming language with a stateful GC

https://github.com/valk-lang/valk
1•ctxcode•50m ago•0 comments

Setting Up and Configuring LibreSDR B210/B220 AD9361 on Windows and Linux (2025)

https://gainsec.com/2025/01/23/setting-up-and-configuring-libresdr-b210-b220-ad9361-on-windows-an...
1•teleforce•50m ago•0 comments

Show HN: Share your MRR in seconds. Stop wasting time on screenshots

https://www.showmrr.design/
1•brokeceo7•52m ago•0 comments

A tough labor market for white-collar workers has turned recruiting upside down

https://www.wsj.com/lifestyle/careers/job-hunters-are-so-desperate-that-theyre-paying-to-get-recr...
12•KnuthIsGod•52m ago•1 comments

The Moon Should Be a Computer

https://www.palladiummag.com/2025/04/18/the-moon-should-be-a-computer/
1•MrBuddyCasino•54m ago•0 comments

It is incorrect to "normalize" // in HTTP URL paths

https://runxiyu.org/comp/doubleslash/
2•pabs3•54m ago•0 comments

Microsoft Loses $400B After AI Spending Backfires [video]

https://www.youtube.com/watch?v=ZcIWx_dW0Jo
3•cable2600•56m ago•1 comments

Learn how to make mechanical keyboard PCBs

https://wiki.ai03.com/books/pcb-design
1•tripdout•1h ago•0 comments

Show HN: Mojic – A C code obfuscator and encryption tool for source protection

https://amit.is-a.dev/mojicDocs
2•notamitgamer•1h ago•1 comments

Show HN: Githrun – Run Python Scripts from GitHub URLs and VS Code Extension

https://amit.is-a.dev/githrun
2•notamitgamer•1h ago•1 comments

Show HN: Ship packages without exposing your real address

https://shipto.me
2•thesecretceo•1h ago•1 comments

Colocation Evaluation Framework for AI Infrastructure (2026)

https://syaala.com/blog/colocation-vs-modular-vs-traditional-2026
1•jaynamburi•1h ago•0 comments

Show HN: Dwrite.me A minimalist writing space that blocks copypaste to fight AI

https://dwrite.me
1•ketutdana•1h ago•0 comments

Amazon Basics vs. SanDisk: I Cut Them Open [video]

https://www.youtube.com/watch?v=Wir1jBqvQEs
1•iamflimflam1•1h ago•0 comments

SOUL.md

https://soul.md/
3•tosh•1h ago•0 comments