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?

I built a 30KB language model that's never been wrong

https://pub.towardsai.net/i-built-a-30kb-language-model-thats-never-been-wrong-9386a82cdf31
1•nicklamb•42s ago•0 comments

What Spectroscopy Was to the 1800s, Embeddings Are to Science Now

https://mnky9800n.substack.com/p/what-spectroscopy-was-to-the-1800s
1•mnky9800n•1m ago•0 comments

3D Gaussian Splatting: Complete Guide to Services, Use Cases & Web Viewers

https://www.utsubo.com/blog/gaussian-splatting-guide
1•mxfh•1m ago•0 comments

Litestream Writable VFS

https://fly.io/blog/litestream-writable-vfs/
4•emschwartz•1m ago•8 comments

Student Loans May Get Discharged, Refunded for 200k as Key Deadline Passes

https://www.forbes.com/sites/adamminsky/2026/01/30/student-loans-may-get-discharged-and-refunded-...
1•toomuchtodo•3m ago•1 comments

I, Integrated Circuit

https://hackaday.com/2026/02/04/__trashed-28/
1•jnord•3m ago•0 comments

The Iron Heel

https://en.wikipedia.org/wiki/The_Iron_Heel
1•d_silin•4m ago•0 comments

Monolith OS Devblog for January 2026

https://monolith-project.org/blog/january-2026-update/
1•mrunix•5m ago•0 comments

The missing metric: Spec Coverage

https://benhouston3d.com/blog/spec-coverage
1•bhouston•6m ago•0 comments

From building client websites to launching my own SaaS

1•CheckAnalytic•6m ago•0 comments

A sandbox-safe macOS gateway for AI agents

https://github.com/ericblue/mac-agent-gateway
1•ericblue•7m ago•1 comments

Show HN: The Last Worm – Visualizing guinea worm eradication, from 3.5M to 10

https://echomoltinsson.github.io/last-worm/
1•onyx_writes•7m ago•0 comments

Everyone Is Stealing TV

https://www.theverge.com/streaming/873416/piracy-streaming-boxes
1•jnord•7m ago•0 comments

Paul Graham's Essays

https://paulgraham.com/articles.html
1•Brysonbw•7m ago•0 comments

Smart AI Policy Means Examing Its Real Harms and Benefits

https://www.eff.org/deeplinks/2026/02/smart-ai-policy-means-understanding-its-real-harms-and-bene...
1•hn_acker•8m ago•1 comments

From Anki to Kickstarter: The Making of Kanjideck

https://alt-romes.github.io/posts/2026-01-30-from-side-project-to-kickstarter-a-walkthrough.html
1•romes•8m ago•0 comments

Thought-Terminating Cliché

https://en.wikipedia.org/wiki/Thought-terminating_clich%C3%A9
1•walterbell•10m ago•0 comments

Lopaka: Create pixel-perfect graphics for embedded devices

https://lopaka.app/
1•flexagoon•11m ago•0 comments

Alphabet Q4 Earnings

https://blog.google/company-news/inside-google/message-ceo/alphabet-earnings-q4-2025/
2•aresant•12m ago•0 comments

The Internet of Babel

https://dolphinmade.com/blog/internet-of-babel/
1•rprend•13m ago•1 comments

As Rocks May Think

https://evjang.com/2026/02/04/rocks.html
2•modeless•15m ago•0 comments

School

https://bcanuntoldhistory.knowledge.ca
1•haileymmm•16m ago•0 comments

Claude Code patches to make it use less CPU

https://github.com/denysvitali/claude-code-patches
3•denysvitali•17m ago•0 comments

DeepAgents – A virtual filesystem abstraction for AI agents (S3, SQLite, disk) [video]

https://www.youtube.com/watch?v=5oI_G8WL6rU
1•cbromann•17m ago•0 comments

I've created a tool to make your Discord server indexable on Google and AI

https://silver-concept-375343.framer.app/
1•jackota•18m ago•1 comments

AI Mirror

https://mirror.syshuman.com
1•KadirErturk•19m ago•0 comments

Striking a Balance: Working Remote for Nearly a Decade

https://rion.io/2025/12/30/striking-a-balance-working-fully-remote-for-nearly-a-decade/
2•rionmonster•20m ago•0 comments

Ask HN: chat agent for n8n development?

1•realityfactchex•21m ago•0 comments

Epstein asked Chomsky for advice over 'putrid' media coverage, files show

https://www.bbc.com/news/articles/ce9ykjlyv50o
3•tartoran•21m ago•0 comments

I Am Not a Functional Programmer

https://blog.daniel-beskin.com/2026-01-28-i-am-not-a-functional-programmer
4•birdculture•25m ago•0 comments