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?

Iosevka + Berkeley = Ioskeley

https://github.com/ahatem/IoskeleyMono
1•hggh•47s ago•0 comments

Show HN: Gambling/math/typing for screen time (iOS)

https://apps.apple.com/us/app/second-thought-less-scrolling/id6749641307
1•yaseenhalabi•1m ago•0 comments

No big deal or the end of the world?

https://world.hey.com/jason/no-big-deal-or-the-end-of-the-world-0b0d8619
1•ravenical•3m ago•0 comments

Haiku OS runs on M1 Macs now

https://discuss.haiku-os.org/t/my-haiku-arm64-progress/19044?page=2
1•tekkertje•4m ago•0 comments

10Gb/s Ethernet: using mini-heatsinks with a 10GBASE-T SFP+ module

https://www.gilesthomas.com/2026/05/10g-ethernet-sfpplus-mini-heatsinks
1•gpjt•4m ago•0 comments

Andrew Huberman's Peptide Recommendations 2026

https://peptideportal.org/blog/andrew-huberman-peptide-recommendations-2026
1•goldkey•4m ago•0 comments

Simulating Infinity in Conway's Game of Life with Modern C++

https://ryanjk5.github.io/posts/GOLDE/
1•HeliumHydride•5m ago•0 comments

Show HN: StrudelBot – 3D printed humanoid robotic hand with teleoperation glove

https://www.youtube.com/watch?v=G9rqOqkuWdw
1•abr0ahm•8m ago•0 comments

Elon Musk losses OpenAI lawsuit as jury sides with Sam Altman and Greg Brockman

https://www.msn.com/en-us/news/crime/breaking-elon-musk-losses-openai-lawsuit-as-jury-sides-with-...
3•voisin•8m ago•0 comments

The linear Diophantine system N = 25A and 12B, where p ≡ 1 (mod q)

https://github.com/A19dammer91/the-exact-algebraic-condition-for-clock-behaviour.
1•A19dammer91•9m ago•0 comments

Americans Oppose AI Data Centers in Their Area

https://news.gallup.com/poll/709772/americans-oppose-data-centers-area.aspx
2•speckx•9m ago•0 comments

Being Political in the Right Way: On reasoning about society

https://chillphysicsenjoyer.substack.com/p/being-political-in-the-right-way
1•crescit_eundo•12m ago•0 comments

India missed out on AI and now its run as market darling may be over

https://www.japantimes.co.jp/business/2026/05/17/india-missing-out-ai-boom/
2•saikatsg•14m ago•0 comments

Critical: Compromised Nx Console version 18.95.0

https://github.com/nrwl/nx-console/security/advisories/GHSA-c9j4-9m59-847w
2•urbandw311er•16m ago•2 comments

Show HN: An LLM that's better at writing

https://dft.rosmine.ai/
1•rosmine•16m ago•0 comments

Microsoft is retiring Teams' Together Mode

https://www.theverge.com/tech/932215/microsoft-teams-together-mode
2•saikatsg•17m ago•0 comments

Agentic AI Runtime Security and Self-Defense (2025)

https://arxiv.org/abs/2510.13825
1•mooreds•17m ago•0 comments

You can make an app for that

https://www.theverge.com/tech/928905/vibe-code-personal-software-revolution
1•saikatsg•17m ago•0 comments

Haiku OS runs on M1 Macs now

https://www.osnews.com/story/144985/haiku-os-runs-on-m1-macs-now/
6•speckx•17m ago•1 comments

The Efficiency Moat: Why China Is Beating the U.S. on AI and Everything Else

https://www.thebignewsletter.com/p/the-efficiency-moat-why-china-is
5•PaulHoule•17m ago•0 comments

Show HN: AppleGuessr – GeoGuessr for Apple Stores

https://appleguessr.vercel.app/
1•EvanZhouDev•20m ago•0 comments

First They Came for the Programmers

https://blog.miljko.org/2026/05/17/first-they-came-for-the.html
1•speckx•20m ago•0 comments

We let AIs run radio stations

https://andonlabs.com/blog/andon-fm
1•lukaspetersson•22m ago•1 comments

Agora-1: The Multi-Agent World Model

https://agora.odyssey.ml
1•olivercameron•22m ago•0 comments

Recursive Language Models (RLM): near-infinite context via recursive sub-queries

https://github.com/alexzhang13/rlm
1•mjgil•23m ago•0 comments

Musk vs. OpenAI Verdict: Musk Lost

https://twitter.com/ns123abc/status/2056436278682669112
4•hmate9•27m ago•1 comments

Show HN: Marlin-2B: a tiny VLM to extract structured information from videos

https://huggingface.co/NemoStation/Marlin-2B
1•HappyPablo•28m ago•1 comments

Protocols for transactional usage of object storage

https://www.bitsxpages.com/p/protocols-for-transactional-usage
2•agavra•28m ago•0 comments

Delivering with No End in Sight

https://personalis.io/blog/sustainable-development
1•sylvanjsmit•29m ago•0 comments

SmallCode – A coding agent that gets 87% on benchmarks with a 4B parameter model

https://old.reddit.com/r/LocalLLaMA/comments/1tgecrq/i_built_a_coding_agent_that_gets_87_on_bench...
2•aagha•29m ago•0 comments