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?

Seeking a Front End Engineer Role

1•gauravFrontend•41s ago•0 comments

Show HN: A Product Commercialization Framework for Solo Developers

1•groask•46s ago•0 comments

Step by Step Analysis of Malicious NPM Package

https://safedep.io/npm-sandworm-mode-supply-chain-attack/
1•abhisek•1m ago•0 comments

Task Specific Knowledge Graphs

https://arxiv.org/abs/2312.16890
1•alansaber•1m ago•0 comments

Aquarium Is Good Enough for Mac/Win/Mac CI in AWS?

https://github.com/sparshev/aquarium-fish
1•dave455•1m ago•0 comments

macOS's Little-Known Command-Line Sandboxing Tool

https://igorstechnoclub.com/sandbox-exec/
1•Igor_Wiwi•1m ago•0 comments

Lite³: A JSON-Compatible Zero-Copy Serialization Format

https://lite3.io/
1•woadwarrior01•1m ago•0 comments

We Are the Introverts

https://incidentalcomics.substack.com/p/we-are-the-introverts
1•herbertl•2m ago•0 comments

Neo Emacs – A GPU-powered Emacs written in Rust with a modern display engine

https://github.com/eval-exec/neomacs
1•agarttha•3m ago•0 comments

Limnic Eruption

https://en.wikipedia.org/wiki/Limnic_eruption
1•alch-•3m ago•0 comments

Google Gemini Music

https://gemini.google.com/music
1•danielfalbo•4m ago•0 comments

CXMT has been offering DDR4 chips at about half the prevailing market rate

https://www.koreaherald.com/article/10679206
2•phront•4m ago•0 comments

Reading Recs for Product Management as a Dev

1•ch4s3•8m ago•0 comments

Show HN: DDV – Terminal DynamoDB Viewer

https://github.com/lusingander/ddv
1•lusingander•13m ago•0 comments

Flexoki

https://stephango.com/flexoki
1•Tomte•13m ago•0 comments

Show HN: LocalAgent: local coding agent CLI with trust and replay

https://github.com/CalvinSturm/LocalAgent
1•CalvinBuild•16m ago•0 comments

Shortening the Spiral

https://afterburnout.co/p/shortening-the-spiral
1•mooreds•17m ago•0 comments

Humans, vampires, and why you aren't Steve Yegge

https://www.beyondwritingcode.com/2026/02/20/humans-vampires-and-why-you-arent-steve-yegge.html
2•mooreds•18m ago•0 comments

An attempt at a balanced perspective on AI [video]

https://www.youtube.com/watch?v=FC7YGG0FzZ0
1•mooreds•19m ago•0 comments

Anthropic's safety-first ethos collided with The Pentagon

https://www.scientificamerican.com/article/anthropics-safety-first-ai-collides-with-the-pentagon-...
1•lonelyasacloud•19m ago•2 comments

A New Approach in Plane Kinematics

https://www.researchgate.net/publication/400812681_A_New_Approach_in_Plane_Kinematics
1•fango•20m ago•1 comments

Cereggii – Multithreading Utilities for Python

https://github.com/dpdani/cereggii
2•dpdani•21m ago•1 comments

Build Your Own Forth Interpreter

https://codingchallenges.fyi/challenges/challenge-forth/
1•AlexeyBrin•22m ago•0 comments

Don't Deconvolve Your PSF

https://david-hoffman.github.io/post/dont-deconvolve-your-psf/
2•joebig•22m ago•0 comments

Show HN: Launch-AI directory for creators, indie developers, and founders

https://launchsoar.com
2•ovelv•23m ago•0 comments

I'm 17, spent ~4 month reporting IP leak& account flaw(unpatched).breakdown here

https://flashmesh.netlify.app/
1•Elevanix•24m ago•1 comments

Show HN: The Sanguine Box – A 2026 vision for solo-produced comics

https://sanguinebox.com/comics/sanguine/
1•Balvarez•28m ago•0 comments

Low-Cost Microscope to Study Living Cells in Zero Gravity

https://www.biophysics.org/news-room/scientists-build-low-cost-microscope-to-study-living-cells-i...
1•geox•28m ago•0 comments

Show HN: Natural language semiconductor geometry generator powered by LLMs

https://github.com/rusrushal13/geoforge
1•rusrushal13•29m ago•0 comments

Whale Fall

https://nesbitt.io/2026/02/21/whale-fall.html
1•chmaynard•29m ago•0 comments