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

Pydantic-DeepAgents – A Python Framework for Building Autonomous AI Agents

https://github.com/vstorm-co/pydantic-deepagents
1•kacper-vstorm•1m ago•1 comments

TPU Mania

https://thechipletter.substack.com/p/tpu-mania
1•chmaynard•4m ago•0 comments

Show HN: Seedance2:AI Video Generator with smooth motion and rich details

https://seedance-2.org
1•Aa123128•5m ago•0 comments

Show HN: Hazbin Hotel OC Maker – Create Original Characters with AI

https://aiocmaker.com/oc-maker/hazbin-hotel-oc-maker
1•xiaoshumiao•5m ago•0 comments

Show HN: I built this because finding a job f**king sucks

https://trylockedin.app/
1•irfahm11•11m ago•0 comments

'A nightmare' – The battle over Warner Bros is turning Hollywood upside down

https://www.bbc.com/news/articles/c8dyy47qy82o
1•breve•11m ago•1 comments

Show HN: Tic Tac Flip – A new strategic game based on Tic Tac Toe

https://tic-tac-flip.web.app/
1•breezefox•11m ago•0 comments

Show HN: CF Local Helpers – Dashboard for Cloudflare Workers Local Dev

https://github.com/bimsina/cf-local-helpers
1•bimsina•20m ago•0 comments

"You should never build a CMS"

https://www.sanity.io/blog/you-should-never-build-a-cms
1•handfuloflight•22m ago•0 comments

Will blockbuster obesity drugs revolutionize addiction treatment?

https://www.nature.com/articles/d41586-025-03911-x
1•qnleigh•23m ago•0 comments

Interlock – a circuit breaker and certification system for AI infrastructure

https://github.com/CULPRITCHAOS/Interlock
1•CULPRITCHAOS•30m ago•1 comments

ICE Holding Chinese Man Who Documented Uyghur Camps

https://www.wsj.com/world/china/ice-holding-chinese-man-who-documented-uyghur-camps-a4702045
4•gok•30m ago•0 comments

Counter Social – a next-generation anti abuse and user privacy social network

https://counter.social/index.html
1•inesranzo•31m ago•0 comments

Game Theory and Your Lawn

https://domofutu.substack.com/p/game-theory-and-your-lawn
1•wjb3•32m ago•0 comments

'It was like a dream': How Australia's rarest bird of prey was found

https://www.watoday.com.au/national/western-australia/it-was-like-a-dream-how-australia-s-rarest-...
2•defrost•40m ago•0 comments

Show HN: Rolldphobia – Bundle size analyzer with tree-shaking using Rolldown

https://rolldphobia.ssssota.dev/
1•ssssota•46m ago•0 comments

Hyrumrand – Golang random number generator based on random map iteration order

https://github.com/micrictor/hyrumrand
2•mtud•49m ago•0 comments

Ask HN: How does traceroute on airplane wifis work?

1•bjourne•51m ago•0 comments

Neutrino Alchemy: Sun's Ghost Particles Caught Transforming Atoms

https://www.sciencealert.com/neutrino-alchemy-suns-ghost-particles-finally-caught-transforming-atoms
1•Guestmodinfo•51m ago•0 comments

Pingfs: Stores your data in ICMP ping packets

https://github.com/yarrick/pingfs
1•linkdd•51m ago•0 comments

Design Is Search

https://twitter.com/karrisaarinen/status/1999730838280503775
2•gmays•53m ago•0 comments

Altman: Super intelligence in 10 years, more extraordinary things in 2026

https://openai.com/index/ten-years/
2•aurareturn•53m ago•1 comments

What happens when the coding becomes the least interesting part of the work

https://obie.medium.com/what-happens-when-the-coding-becomes-the-least-interesting-part-of-the-wo...
2•gmays•55m ago•0 comments

Ask HN: A browser that syncs history reliably across devices?

1•workfromspace•1h ago•0 comments

Pizlix: Memory Safe Linux from Scratch

https://fil-c.org/pizlix
2•nullbyte808•1h ago•0 comments

Send Me to Heaven (2013)

https://en.wikipedia.org/wiki/Send_Me_to_Heaven
2•gregsadetsky•1h ago•0 comments

Maths can help you wrap your presents better

https://www.bbc.com/future/article/20251212-how-maths-can-help-you-wrap-your-presents-better
1•1659447091•1h ago•0 comments

Vibe Engineering (2026)

https://www.manning.com/books/vibe-engineering
1•turtleyacht•1h ago•0 comments

We used Codex to build Sora for Android in 28 days

https://openai.com/index/shipping-sora-for-android-with-codex/
2•crorella•1h ago•1 comments

Investors commit quarter-billion dollars to startup designing "Giga" satellites

https://arstechnica.com/science/2025/12/investors-commit-quarter-billion-dollars-to-startup-desig...
1•BWStearns•1h ago•0 comments