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

Ask HN: How is your team changing documentation for AI-assisted coding?

1•hubraumhugo•36s ago•0 comments

The Wrong Apocalypse [pdf]

https://ionanalytics.com/wp-content/uploads/2026/02/The_Wrong_Apocalypse.pdf
1•mooreds•37s ago•0 comments

Ask HN: How do you manage the gap between team chat and real work?

1•PaulShin•47s ago•0 comments

Humans show bat-like skills using mouth-click echolocation

https://medicalxpress.com/news/2026-02-humans-skills-mouth-click-echolocation.html
1•PaulHoule•2m ago•0 comments

Free-Trial Commercial Database Defeats Publicity Rights Claim–LaFleur vs. Yardi

https://blog.ericgoldman.org/archives/2026/03/free-trial-commercial-database-defeats-publicity-ri...
2•hn_acker•2m ago•0 comments

The Pentagon Just Bet $100M on a Drone Contest

https://gadallon.substack.com/p/the-pentagon-just-bet-100-million
2•JumpCrisscross•2m ago•0 comments

How to Securely Erase an Old Hard Drive on macOS Tahoe

https://www.jeffgeerling.com/blog/2026/securely-erase-hard-drive-macos-tahoe/
1•alcazar•2m ago•0 comments

My Doctors Almost Got a Heart Attack When They Saw My Cholesterol

https://machielreyneke.com/blog/cholesterol/
1•leephillips•2m ago•0 comments

Show HN: Ralphex – autonomous GPT Codex agent loop for ChatGPT Pro users

https://github.com/SmolNero/ralphex
1•edgar_ortega•3m ago•0 comments

Ariadne – Let your cloud AI agent use your local Chrome

https://github.com/Rand01ph/Ariadne
1•Rand01ph•4m ago•1 comments

Show HN: SAIA – Typed Contracts for LLM Outputs

https://github.com/serendip-ml/llm-saia/blob/develop/docs/INTRO.md
1•serendip-ml•5m ago•0 comments

AI-Powered Search with Doug Turnbull and Trey Grainger

1•CShorten•5m ago•0 comments

US set to lose measles elimination status after cases soar

https://www.bmj.com/content/392/bmj.s391
2•geox•5m ago•0 comments

List of 43,000 domains blocked in India

https://dnsblocks.in/#explorer
2•karansaini•8m ago•0 comments

AI Clones and Data Protection

https://blog.avas.space/ai-clones/
1•speckx•12m ago•0 comments

ASML says next-gen EUV tools ready to mass-produce chips

https://www.reuters.com/business/asml-says-next-gen-euv-tools-ready-mass-produce-chips-marking-ke...
1•EvgeniyZh•14m ago•0 comments

Looper-rs: ultra lightweight agent loop in Rust

https://github.com/danwritecode/looper-rs
1•handfuloflight•15m ago•0 comments

Show HN: CSS Variables LSP for VS Code and Zed (Rust-First, TS Fallback)

1•lmn451•15m ago•0 comments

Show HN: PaperDraw.dev – A System Design Simulator

https://paperdraw.dev/
1•vhatkarpratap•16m ago•0 comments

Dave's Book Review for the Art of Doing Science and Engineering

https://ratfactor.com/b/the-art-of-doing-science-and-engineering#chapter-26
1•ibobev•19m ago•0 comments

Show HN: GraphGPU – Force-directed graph visualization in WebGPU (not WebGL)

https://github.com/drkameleon/GraphGPU
1•yaniszaf•20m ago•0 comments

The TypeScript Development Trap You Need to Avoid

https://dayvster.com/blog/the-typescript-development-trap-you-need-to-avoid/
1•ibobev•20m ago•0 comments

Show HN: Dungeon Coverage – Unit testing as a dungeon crawler

https://arvindrajnaidu.github.io/dungeon-coverage/
1•arvindrajnaidu•20m ago•0 comments

Guide to Sdf+msdf Fonts

https://www.redblobgames.com/articles/sdf-fonts/
1•ibobev•21m ago•0 comments

A Day in the Life of an Enshittificator [video]

https://www.youtube.com/watch?v=T4Upf_B9RLQ
2•ndsipa_pomu•21m ago•1 comments

First-ever in-utero stem cell therapy for fetal spina bifida repair is safe

https://health.ucdavis.edu/news/headlines/first-ever-in-utero-stem-cell-therapy-for-fetal-spina-b...
2•gmays•26m ago•0 comments

Find active GitHub forks of any repository

https://techgaun.github.io/active-forks/index.html
1•klaussilveira•27m ago•0 comments

Jidoka for Software: Autonomation in the Age of LLMs

https://jamessummerfield.com/writing/2026-02-17-jidoka-for-software-autonomation-in-the-age-of-llms/
1•jcs•27m ago•0 comments

Show HN: ANSItype – Browse 900 TheDraw fonts in the browser

https://ansitype.com/
1•retlehs•27m ago•0 comments

Canada Lost Its Measles Elimination Status Because Few Nurses Speak Low German

https://www.lesswrong.com/posts/H8RdAbAmsqbpBWoDd/canada-lost-its-measles-elimination-status-beca...
2•surprisetalk•28m ago•0 comments