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?

Flat-headed cat not seen in Thailand for almost 30 years is rediscovered

https://www.livescience.com/animals/flat-headed-cat-not-seen-in-thailand-for-almost-30-years-is-r...
1•rguiscard•11m ago•0 comments

Lea Verou's PhD Thesis

https://phd.verou.me/
1•sanketsaurav•13m ago•0 comments

Growing up in "404 Not Found": China's nuclear city in the Gobi Desert

https://substack.com/inbox/post/182743659
1•Vincent_Yan404•17m ago•1 comments

C++ says "We have try at home."

https://devblogs.microsoft.com/oldnewthing/20251222-00/?p=111890
1•ibobev•18m ago•0 comments

America will not become a tech oligarchy

https://www.economist.com/business/2025/01/21/donald-trumps-america-will-not-become-a-tech-oligarchy
1•andsoitis•19m ago•0 comments

Klein Bottle: From Intuition to Rigor

https://www.johndcook.com/blog/2025/12/27/klein-bottle/
1•ibobev•19m ago•0 comments

Condé Nast gets hacked, and DataBreaches gets "played"

https://databreaches.net/2025/12/25/conde-nast-gets-hacked-and-databreaches-gets-played-christmas...
2•incomplete•21m ago•0 comments

Uxn32: Uxn Emulator for Windows and Wine

https://github.com/randrew/uxn32
1•ibobev•21m ago•0 comments

Racist AI fakes are now a business – and a political tool

https://www.axios.com/2025/12/27/racist-ai-videos-viral-trend
1•smurda•27m ago•0 comments

For Better or for Worse, the Overload

https://consteval.ca/2024/07/25/overload/
1•HeliumHydride•38m ago•0 comments

Surging satellite numbers threaten to dazzle even space telescopes

https://www.economist.com/science-and-technology/2025/12/03/surging-satellite-numbers-threaten-to...
1•1vuio0pswjnm7•46m ago•0 comments

Show HN: I visualized C pointers because I was failing my class (built with AI)

https://afmicreates-c-learning.streamlit.app/
2•af_mi•53m ago•1 comments

Willie Nelson Sees America

https://www.newyorker.com/magazine/2025/12/29/willie-nelson-profile
2•MaysonL•54m ago•0 comments

HUML (Human-Oriented Markup Language)by Kailash, CTO Zerodha [video]

https://www.youtube.com/watch?v=4M_tD1N14Ao
2•maheshs•55m ago•0 comments

Extreme recall: which politicians come to mind?

https://www.tandfonline.com/doi/abs/10.1080/17457289.2025.2474411
2•neehao•56m ago•0 comments

Motif Toolkit

https://en.wikipedia.org/wiki/Motif_(software)
1•mghackerlady•57m ago•0 comments

Show HN: Quick Image Editor – Add text to images, no signup required

https://imageedit.brightmind.one
1•hemulich•58m ago•1 comments

The NBA gambling scandal, explained by an actual gambler

https://www.natesilver.net/p/the-nba-gambling-scandal-explained
1•neehao•59m ago•0 comments

Wordle and the Wisdom of Crowds

https://rajivsethi.substack.com/p/wordle-and-the-wisdom-of-crowds
1•neehao•1h ago•0 comments

Beating Factorio on Savee Icons (Floppy disks)

https://www.youtube.com/watch?v=cTPBGZcTRqo
1•DocJade•1h ago•1 comments

Ask HN: Are LLMs becoming a real discovery channel for ecommerce?

1•David_0101•1h ago•0 comments

Rainbow Six Siege breach gives players billions of credits

https://www.bleepingcomputer.com/news/security/massive-rainbow-six-siege-breach-gives-players-bil...
2•fleahunter•1h ago•1 comments

Meetings with No Agenda Are a Waste of Time

https://arpitbhayani.me/blogs/meetings-with-no-agenda-are-a-waste-of-time/
2•klysm•1h ago•1 comments

Sam Altman is hiring someone to worry about the dangers of AI

https://www.theverge.com/news/850537/sam-altman-openai-head-of-preparedness
2•Fiveplus•1h ago•0 comments

A Chess Conjecture I've Been Thinking About

1•kinj28•1h ago•0 comments

Song will bring investors to tears [video]

https://www.youtube.com/watch?v=RP9HtU5EhaI&list=RDRP9HtU5EhaI
1•haebom•1h ago•0 comments

Websites with Dumb Password Rules

https://dumbpasswordrules.com/sites-list/
3•Fiveplus•1h ago•1 comments

Using Cursor for Importing Data into Notion

https://alprielse.xyz/posts/using-cursor-for-importing-data-into-notion/
1•iampripri•1h ago•0 comments

Show HN: Just built the best domain search engine

https://search.labs.namefi.io/?query=hackernews
1•xinbenlv•1h ago•1 comments

Something to Latch Onto

https://tylergaw.com/blog/something-to-latch-onto/
1•m-hodges•1h ago•0 comments