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

Fees for seas: a history of taxing waterways

https://www.ft.com/content/9a5294cf-0b64-4201-b88c-12ba586bb4fd
1•uijl•3m ago•1 comments

ChatGPT praises mood and 'bedroom/DIY texture' of fart sounds

https://www.pcgamer.com/software/ai/chatgpt-will-praise-the-mood-and-bedroom-diy-texture-of-fart-...
1•wesfenlon•5m ago•0 comments

The coordination tax: six years watching a one-day feature take four months

https://www.indiehackers.com/post/the-coordination-tax-six-years-watching-a-one-day-feature-take-...
1•max_flowly_run•6m ago•0 comments

Is AI Really gonna take our jobs?

1•PotatoAditya•7m ago•0 comments

Security Best Practices for Speedify Self-Hosted Servers

https://support.speedify.com/article/1070-security-best-practices-for-speedify-self-hosted-servers
1•goodburb•7m ago•0 comments

Show HN: sqlc-gen-sqlx, a sqlc plugin for generating sqlx Rust code

https://github.com/mathematic-inc/sqlc-gen-sqlx
1•jrandolf•11m ago•1 comments

What is gravity? – A 7-minute read

https://corpusk.info/what-is-gravity.html
1•nik_slusarenko•16m ago•0 comments

AI Changed What We Build. Then It Changed Who We Hire

https://www.hauser.io/ai-changed-what-we-build-then-it-changed-who-we-hire/
1•bkfh•18m ago•0 comments

Show HN: Xlg – Jq for APIs

1•alykirk•19m ago•1 comments

Programming Used to Be Free

https://purplesyringa.moe/blog/programming-used-to-be-free/
1•yeputons•21m ago•0 comments

The P Source: How humanities scholars changed modern spycraft (2020)

https://paw.princeton.edu/article/p-source
2•walterbell•21m ago•0 comments

Record oil production in West Texas helps stabilize U.S. supply amid Iran war

https://www.texastribune.org/2026/04/09/west-texas-oil-production-iran/
1•1659447091•23m ago•0 comments

CC v2.1.100 inflates cache_creation by ~20K tokens vs. v2.1.98

https://github.com/anthropics/claude-code/issues/46917
1•tamnd•24m ago•0 comments

Caught Off Guard Again:How Democrats Keep Misjudging the Information Battlefield

https://weaponizedspaces.substack.com/p/caught-off-guard-again-how-democrats
1•rbanffy•26m ago•0 comments

We change when others are watching

https://nesslabs.com/audience-effect
1•theorchid•27m ago•0 comments

Object Oriented Programming (OOP) in R Explained

https://r-statistics.co/OOP-in-R.html
1•selva86•29m ago•0 comments

Mano-P – On-device GUI agent, #1 on OSWorld, runs on M4 Mac

https://github.com/Mininglamp-AI/Mano-P
2•mininglamp•32m ago•0 comments

Meta builds AI version of Mark Zuckerberg to interact with staff

https://www.ft.com/content/02107c23-6c7a-4c19-b8e2-b45f4bb9ce5f
2•jmsflknr•33m ago•0 comments

The AI Layoff Trap

https://arxiv.org/abs/2603.20617
31•armcat•49m ago•21 comments

Horizontal Infrastructure for Building Computer Vision Applications

1•AdamEyes•49m ago•0 comments

Fly Drones from the Browser

https://fpvsim.com/sim
2•mosfets•52m ago•1 comments

Claude Code plugin with a built-in fact-check compiler

https://grainulator.app/
3•woptober•53m ago•0 comments

Battery Intelligence SDK for IoT (NRF52840, STM32, ESP32-C3)

https://github.com/aliaksandr-liapin/ibattery-sdk
1•iBattery•54m ago•0 comments

The Economics of Software Teams: Why Most Engineering Orgs Are Flying Blind

https://www.viktorcessan.com/the-economics-of-software-teams/
12•kiyanwang•1h ago•0 comments

Relocating Rigor

https://aicoding.leaflet.pub/3mbrvhyye4k2e
2•kiyanwang•1h ago•0 comments

Trovare – I built a search aggregator with 39 adapters across 11 platforms

https://trovare.ro/
1•mariusmitrofan•1h ago•0 comments

X Randomly Banning Users for "Inauthentic Behavior"

https://old.reddit.com/r/LinusTechTips/comments/1rsdk7i/anybody_here_talking_about_the_massive/
13•crmrc114•1h ago•6 comments

How to Share Terraform State (Tutorial)

https://spacelift.io/blog/how-to-share-terraform-state
2•kat-w•1h ago•0 comments

Gall's Law – Laws of Software

https://www.laws-of-software.com/laws/gall/
2•fagnerbrack•1h ago•0 comments

Why successful people often have bad opinions online

https://greyenlightenment.com/2026/04/02/why-successful-people-often-have-bad-opinions-online/
2•paulpauper•1h ago•1 comments