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

Nano Banana Pro Can Generate a Image from Lat Long

https://chat.vlm.run/c/8ff868bb-e188-4677-b38e-46301d30aac9
1•visioninmyblood•1m ago•1 comments

How to get started with the ed text editor (2022)

https://www.redhat.com/en/blog/introduction-ed-editor
1•todsacerdoti•2m ago•0 comments

C64 gets Doom-style shooter

https://hackaday.com/2025/11/21/commodores-most-popular-computer-gets-doom-style-shooter/
1•amichail•2m ago•0 comments

Wikidive: A tool to deep dive into Wikipedia rabbitholes

https://wikidive.net/dive?topic=Cognition
1•atulvi•4m ago•0 comments

How to use the internet, 1995 [video]

https://www.youtube.com/watch?v=Y0EXga2hEIs
1•monkey34•7m ago•0 comments

Bret Taylor's Sierra Reaches $100M ARR in Under Two Years

https://techcrunch.com/2025/11/21/bret-taylors-sierra-reaches-100m-arr-in-under-two-years/
1•karakoram•12m ago•0 comments

Show HN: Free SEO Image Generator WordPress Plugin – Rule Based and Zero AI

https://github.com/atraining/featured-image-generator-wordpress
1•chelm•12m ago•1 comments

Erik Prince, America's most notorious mercenary, spies opportunity in chaos

https://www.economist.com/international/2025/11/21/erik-prince-americas-most-notorious-mercenary-...
1•rguiscard•16m ago•1 comments

I made an app because we kept double feeding our cat

https://www.kibblo.co/
1•hackfast•16m ago•0 comments

Behind Amazon's quiet launch of Haul, which competes with Temu

https://www.cnbc.com/2024/12/22/amazon-haul-takes-on-temu-to-bring-shoppers-cheap-goods-from-chin...
1•mgh2•16m ago•0 comments

Installing FreeBSD 15 on my desktop

https://yorickpeterse.com/articles/installing-freebsd-15-on-my-desktop/
2•todsacerdoti•18m ago•0 comments

PatpDNS Chrome Browser Extention

https://github.com/skilo83/patpDNS-Chrome-extention
1•1o1o1o1o1•25m ago•0 comments

Lawmakers Are Rolling Back Food Safety Rules

https://jacobin.com/2025/11/listeria-food-labeling-shutdown-deal
5•wahnfrieden•28m ago•0 comments

Smart App Control blocks unsigned OSS tools

https://forum.dotnetdev.kr/t/technical-statement-smart-app-control-and-the-future-of-the-windows-...
1•rkttu•28m ago•0 comments

Making Meaningful Contributions to Open Source [video]

https://www.youtube.com/watch?v=bzogTYPv65M
1•mooreds•32m ago•0 comments

Cryptographers cancel election results after losing decryption key

https://arstechnica.com/security/2025/11/cryptography-group-cancels-election-results-after-offici...
7•awkwardpotato•32m ago•1 comments

Nvidia, Microsoft invest $15B in AI startup Anthropic

https://finance.yahoo.com/news/nvidia-microsoft-invest-15-billion-203500905.html
1•mgh2•34m ago•0 comments

Shinzo Python SDK: OpenTelemetry-Native Observability for MCP Servers

https://github.com/shinzo-labs/shinzo-py
2•austin-born•38m ago•1 comments

Ask HN: What are your best tips, speculations on running a Git mirror farm?

1•chanux•42m ago•0 comments

Go's runtime may someday start explicitly freeing some internal memory

https://utcc.utoronto.ca/~cks/space/blog/programming/GoExplicitMemoryFreeing
1•birdculture•48m ago•0 comments

Letter from Codeberg: Onwards and Upwards

https://blog.codeberg.org/letter-from-codeberg-onwards-and-upwards.html
1•todsacerdoti•54m ago•0 comments

Natural emergent misalignment from reward hacking in production rl [pdf]

https://assets.anthropic.com/m/74342f2c96095771/original/Natural-emergent-misalignment-from-rewar...
2•neapolisbeach•54m ago•0 comments

GemRB is a portable open-source implementation of BioWare's Infinity Engine

http://gemrb.org/
1•ibobev•57m ago•0 comments

Drug lord Ryan Wedding's bevy of beauties

https://torontosun.com/news/world/drug-lord-ryan-wedding-women
2•Anon84•57m ago•0 comments

Cognitive Orthogonal Reasoning Engine

https://github.com/Aethelred-dev/c.o.r.e
1•phboot•1h ago•0 comments

Launch ALERT SpaceX Starlink 6-79

https://twitter.com/TLPN_Official/status/1991973488832483402
2•astrozac•1h ago•0 comments

Definitions of AI and How Companies Use Them to Lie [video]

https://www.youtube.com/watch?v=F5ajyr5VzS0
2•tartoran•1h ago•0 comments

Sharper MRI scans may be on horizon thanks to new physics-based model

https://news.rice.edu/news/2025/sharper-mri-scans-may-be-horizon-thanks-new-physics-based-model
2•hhs•1h ago•0 comments

Recycled Nitrogen for Regenerative Agriculture

https://www.mdpi.com/2073-4395/15/11/2503
2•PaulHoule•1h ago•0 comments

LTO-10 bumped to 40 TB as future tape capacities get cut

https://blocksandfiles.com/2025/11/13/lto10-upgrade/
2•bilegeek•1h ago•0 comments