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: I built a unified inference layer for Document Processing Models

https://github.com/adithya-s-k/Omnidocs
1•Adithya-Kolavi•20s ago•0 comments

Self-Hosting Obsidian Vault with Retype

https://retype.com/blog/2026-02-25-self-hosting-obsidian-vault-with-retype/
1•geoffreymcgill•25s ago•0 comments

Testing Can Be Fun

https://giacomocavalieri.me/writing/testing-can-be-fun-actually
1•PaulHoule•3m ago•0 comments

Show HN: A high-performance Hex Editor with Yara-X support in C#

https://github.com/pumpkin-bit/EUVA
1•falkerdev•4m ago•0 comments

Trump's Dollar

https://www.phenomenalworld.org/analysis/trumps-dollar/
2•speckx•4m ago•0 comments

Open source project to map relationships and analyze w AI

https://www.bowen.app
2•andys627•4m ago•1 comments

GridCalc: An RPN Spreadsheet for iOS

https://tailrecursion.com/~alan/GridCalc.html
2•wooby•4m ago•1 comments

Show HN: Inkwell – A lightweight, portable Markdown editor

https://github.com/4worlds4w-svg/inkwell
2•accursed_share•5m ago•1 comments

Companies cutting jobs as investments shift toward AI

https://www.reuters.com/business/world-at-work/companies-cutting-jobs-investments-shift-toward-ai...
2•giuliomagnifico•5m ago•1 comments

If code is cheap, intent is the currency

https://zknill.io/posts/commit-message-intent/
3•zknill•5m ago•0 comments

Show HN: Better Hub – we tried to improve GitHub

https://www.better-hub.com/
2•bekacru•5m ago•1 comments

Gatekeeper – open-source policy engine and sandbox for AI coding agents

https://github.com/posterity-ventures/Gatekeeper
2•gemini2026•6m ago•1 comments

Show HN: Quoroom – local AI swarm (public research)

https://quoroom.ai/
4•vasilyt•6m ago•4 comments

FireNation – Free Net Worth Dashboard and Fire Planner

https://firenation.tech/
2•lovenwork•8m ago•1 comments

Why isn't LA repaving streets?

https://lapublicpress.org/2026/02/why-isnt-la-repaving-streets/
3•speckx•9m ago•0 comments

Railway.gov.gr: Greek Train Tracker

https://railway.gov.gr/
2•p-a_58213•9m ago•0 comments

Show HN: Well-net – a friends-only IPv6 network with no central server

https://github.com/remoon-net/well
2•shynome•10m ago•0 comments

Show HN: FilmLink – The Wiki Game for Movies (Daily Puzzle and Multiplayer Beta)

https://www.filmlink.io
2•danore2•10m ago•0 comments

Money in Postgres

https://numeric.substack.com/p/money-in-postgres
3•bihla•10m ago•0 comments

The Great Creative Extraction: AI Content Generation Rebuilds Colonial Economics

https://aylgorith.com/creative-extraction-ai-economics/
3•laurex•10m ago•0 comments

Racket v9.1

https://blog.racket-lang.org/2026/02/racket-v9-1.html
4•azhenley•11m ago•0 comments

Major gap in Earth's rock record likely due to tectonics–not glaciers

https://phys.org/news/2026-02-major-gap-earth-due-tectonics.html
4•bikenaga•11m ago•1 comments

The Rule of Four vs. RFC 3021: Temporal Conflicts in LLM Weights

2•mehrdadrad•12m ago•0 comments

Large-scale online deanonymization with LLMs (using HN posts)

https://arxiv.org/abs/2602.16800
3•mellosouls•14m ago•0 comments

Following 35% growth, solar has passed hydro on US grid

https://arstechnica.com/science/2026/02/final-2025-data-is-in-us-energy-use-is-up-as-solar-passes...
6•rbanffy•14m ago•1 comments

I Failed 3 Times Building This with AI. In 2026, It Took Days

https://luisfernandoyt.makestudio.app/blog/i-vibe-coded-a-research-paper
2•lout332•14m ago•0 comments

Some More Game Theory, This Time on the AMD-Meta Platforms Deal

https://www.nextplatform.com/compute/2026/02/24/some-more-game-theory-this-time-on-the-amd-meta-p...
2•rbanffy•14m ago•0 comments

BBNs Toward Universal Fabricators – By Eric Gilliam

https://www.freaktakes.com/p/bbns-towards-universal-fabricators
2•rbanffy•15m ago•0 comments

A 3D printed iPad tray for a compact dual-screen setup

https://abishov.com/blog/ipad-tray-dual-screen-setup/
2•araz•15m ago•0 comments

Dinosaur eggshells can reveal the age of other fossils

https://arstechnica.com/science/2026/02/dinosaur-eggshells-can-reveal-the-age-of-other-fossils/
2•gmays•15m ago•0 comments