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•1y 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•1y 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: an AI that settles small couple arguments

https://thepiece.app/en
1•Byalpel•3m ago•0 comments

Teaching AI agents to ask better questions by playing "Battleship"

https://news.mit.edu/2026/teaching-ai-agents-ask-better-questions-playing-battleship-0603
1•droidjj•5m ago•0 comments

Digital Goods by ProxyStore

https://digitalgoods.proxysto.re/en
1•Cider9986•6m ago•0 comments

A Structure-Aware Fuzzing Experiment

https://fitzgen.com/2026/06/01/structure-aware-fuzzing-experiment.html
1•sfink•11m ago•0 comments

A Primer in Post-Training Reasoning Data: What We Know About How It Works

https://arxiv.org/abs/2606.02113
1•Anon84•11m ago•0 comments

JackHamr, cloud workspaces for orchestrating coding agents

https://www.jackhamr.ai
2•jrda•12m ago•0 comments

FUTO Swipe Relative error rate improvement vs. Gboard

https://swipe.futo.tech/
1•Cider9986•14m ago•0 comments

California Back and Pain Specialists Exposes 133GB of Patient Medical Records

https://write-ups.security-chu.com/2026/06/California-Back-Pain-Specialists-with-data-breach.html
1•news_rt•19m ago•0 comments

Pie: Yet another open-source coding agent in Rust

https://github.com/c4pt0r/pie
1•c4pt0r•20m ago•2 comments

I built a vulnerable app and spent $1,500 seeing if LLMs could hack it

https://kasra.blog/blog/i-spent-1500-seeing-if-llms-could-hack-my-app/
5•jc4p•23m ago•0 comments

Review of the MoErgo Go60 Keyboard

https://arslan.io/2026/06/02/review-of-the-moergo-go60-keyboard/
1•wapasta•24m ago•0 comments

Klaser Cards, a printable personal collection

https://klaser.cards/
2•Triphibian•24m ago•1 comments

Why Video Agent models are next

https://www.latent.space/p/video-agents
2•gmays•24m ago•0 comments

Dreambeans

https://labs.google/dreambeans
1•fallinditch•25m ago•0 comments

Aquifer – local flow control for bursty GPU-backed APIs

https://github.com/rjpruitt16/aquifer
1•rjpruitt16•26m ago•0 comments

Scholarly Futures: AI and the practical scientist

https://scholarlyfutures.substack.com/p/ai-and-the-practical-scientist
1•JohnHammersley•26m ago•0 comments

A community-ranked feed of blog posts from curated sources

https://bubbles.town/
1•wwfn•29m ago•1 comments

Dystopic Future: The Set Design in Alien

https://kevinmccorrytv.ca/alien-2.html
1•exvi•30m ago•0 comments

The Star Blazers Page

https://kevinmccorrytv.ca/blazers.html
1•exvi•30m ago•0 comments

Monterey Park votes to permanently ban datacenters

https://www.theguardian.com/us-news/2026/jun/03/california-monterey-park-datacenters-ban
4•logickkk1•31m ago•0 comments

Limbic Capitalism

https://cwcp.ca/blog/limbic-capitalism/
2•the-mitr•31m ago•0 comments

The Lost Space Battleship Yamato LaserDisc Game (2013)

https://www.ourstarblazers.com/vault/363/
1•exvi•32m ago•0 comments

Reflections on Two Years of Using Colemak

https://bojidar-bg.dev/blog/2023-12-27-colemak/
1•Curiositry•32m ago•0 comments

HTTP Pipelining

https://en.wikipedia.org/wiki/HTTP_pipelining
1•Brysonbw•33m ago•0 comments

U.S. to Dismantle System Tracking Atlantic Currents That Are at Risk of Collapse

https://e360.yale.edu/digest/trump-ooi-amoc
2•rguiscard•36m ago•0 comments

Show HN: tools wiki – cheatsheets for popular CLI commands

https://toolswiki.deebox.dev/
1•flexdinesh•36m ago•0 comments

Dumbphone 2

https://dumb.co/
3•skogstokig•39m ago•0 comments

Is Dreams of Violets AI slop – or the future of film-making?

https://www.theguardian.com/film/2026/jun/03/dreams-of-violets-ash-koosha-iran-tribeca-film-festival
2•fallinditch•40m ago•0 comments

Under the Hood of "Sum Ergo Demonstro" Demo [video]

https://www.youtube.com/watch?v=0_9YS2tsdYc
1•guiambros•42m ago•0 comments

TensorSharp: Open-Source Local LLM Inference Engine

https://github.com/zhongkaifu/TensorSharp
1•zhongkaifu•51m ago•1 comments