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?

Ask HN: When did computers stop being fun?

1•klez•1m ago•0 comments

Will A.I. Make College Obsolete?

https://www.newyorker.com/news/fault-lines/will-ai-make-college-obsolete
1•momentmaker•2m ago•0 comments

I use LLMs as a staff engineer in 2026

https://www.seangoedecke.com/how-i-use-llms-in-2026/
1•lalitmaganti•2m ago•0 comments

50 Years of Text Games by Aaron Reed

https://www.thepsmiths.com/p/review-50-years-of-text-games-by
1•momentmaker•2m ago•0 comments

Understanding Singleflight in Go

https://www.codingexplorations.com/blog/understanding-singleflight-in-golang-a-solution-for-elimi...
1•ghostbit•6m ago•0 comments

How to Achieve Truly Serverless GPUs

https://modal.com/blog/truly-serverless-gpus
1•birdculture•7m ago•0 comments

AI face is taking over – and driving plastic surgeons crazy

https://www.businessinsider.com/ai-generated-images-chatgpt-reshape-plastic-surgery-beauty-expect...
2•andreylangovoy•21m ago•0 comments

Built a Website for Embedded Software Engineering Interview Preparation

https://srnvl.github.io/Embedded_SWE_Prep/
2•sangramnavale•26m ago•1 comments

Pity the poor AI datacenters facing 'discrimination'

https://www.theguardian.com/commentisfree/2026/may/16/pity-the-poor-ai-datacenters-facing-discrim...
4•devonnull•26m ago•0 comments

Dutch government objects to proposed US law restricting ASML's China exports

https://www.reuters.com/world/asia-pacific/dutch-government-objects-proposed-us-law-restricting-a...
6•jonbaer•32m ago•2 comments

Classic – Hacker News

https://news.ycombinator.com/classic
3•rvnx•38m ago•0 comments

Twilight of the Velocipede: Typesetting Races Before the Age of Linotype

https://publicdomainreview.org/essay/twilight-of-the-velocipede/
1•benbreen•38m ago•0 comments

Google AI Overview – "Tersely"

https://www.google.com/search?q=tersely&oq=tersely
1•flawn•42m ago•0 comments

Liquid Breathing

https://en.wikipedia.org/wiki/Liquid_breathing
1•Markoff•42m ago•0 comments

asp-classic-emulator: Run ASP Classic on macOS, Linux and BSD

https://github.com/MarceloDelgadoDev/asp-classic-emulator
1•866-RON-0-FEZ•47m ago•0 comments

Show HN: Artist Kit – One-Page Website Builder for DJs and Music Artists

https://www.artistkit.co/
3•truetaurus•49m ago•1 comments

I used AI to help market my bagel shop. Then the one-star reviews came in

https://www.businessinsider.com/bagel-shop-owner-removes-ai-social-media-marketing-2026-5
2•michaelsbradley•52m ago•2 comments

Scenario with Low Demand for AI

2•tesdinger•53m ago•0 comments

How does your team capture decisions and action items after meetings?

2•Skm-12•56m ago•0 comments

AI Is Technology, Not a Product

https://daringfireball.net/2026/05/ai_is_technology_not_a_product
2•mattas•57m ago•0 comments

Show HN: Firehooks – Get app users from TikTok without paid ads

https://ads.firehooks.io/
1•Tanvir3•58m ago•0 comments

Do Job Postings Show Early Labor‑Market Effects of AI?

https://libertystreeteconomics.newyorkfed.org/2026/05/do-job-postings-show-early-labor-market-eff...
3•wslh•1h ago•0 comments

BYD weighs Formula 1 role as 2026 rules shift toward electric power, VP confirms

https://carnewschina.com/2026/04/28/byd-weighs-formula-1-role-as-2026-rules-shift-toward-electric...
3•Markoff•1h ago•1 comments

Executives are blaming layoffs on AI, but it is not the main driver

https://finance.yahoo.com/economy/article/executives-are-blaming-layoffs-on-ai-but-research-shows...
1•wslh•1h ago•0 comments

Claude Agent View Changes How You Run Your Engineering Day

https://medium.com/@alirezarezvani/claude-agent-view-changes-how-you-run-your-engineering-day-ec7...
2•jungard•1h ago•0 comments

DIY Triboluminescence Media

1•sargstuff•1h ago•0 comments

The physics of scotch tape (2011)

https://www.symmetrymagazine.org/breaking/2011/01/18/the-physics-of-scotch-tape?language_content_...
1•sargstuff•1h ago•0 comments

X-ray and electron emission from peeling adhesive tape

https://pubs.aip.org/aip/apl/article/128/19/191101/3389324/X-ray-and-electron-emission-from-peeli...
2•ledoge•1h ago•0 comments

Is Trader Joe's the "Quince" of Food?

https://lesleysykes.substack.com/p/is-trader-joes-the-quince-of-food
1•mooreds•1h ago•0 comments

Show HN: nbpipe – A lightweight workflow runner for Jupyter notebooks

https://github.com/ngafar/nbpipe
1•nawazgafar•1h ago•0 comments