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

We have outgrown the Process model

https://sidhion.com/blog/process_model_outgrown/
1•todsacerdoti•35s ago•0 comments

Three Perspectives on Equivalence Relations

https://pseudonium.github.io/2025/09/16/Three_Perspectives_on_Equivalence_Relations.html
1•nill0•3m ago•0 comments

Monoids in Public

https://blog.veritates.love/monoids_in_public.html
2•Bogdanp•4m ago•0 comments

The Newton-to-Quantum Mechanics tension between determinism and indeterminism

https://www.mathpages.com/rr/s9-07/9-07.htm
1•felineflock•5m ago•0 comments

OpenAI says models are programmed to make stuff up

https://www.theregister.com/2025/09/17/openai_hallucinations_incentives/
1•damethos•8m ago•0 comments

The Seneca: First Edition $8k PC Keyboard

https://www.norbauer.co/products/the-seneca
1•evo_9•8m ago•0 comments

AI bots 'coached' son to suicide: grieving mom delivers testimony [video]

https://www.youtube.com/watch?v=yMlvL7T0i4Q
3•mgh2•11m ago•0 comments

Why, as a responsible adult, SimCity 2000 hits differently

https://arstechnica.com/gaming/2025/09/thirty-years-later-simcity-2000-hasnt-changed-but-i-have/
1•doppp•16m ago•0 comments

How to Build Secure AI Coding Agents with Cerebras and Docker Compose

https://www.docker.com/blog/cerebras-docker-compose-secure-ai-coding-agents/
1•meysamazad•18m ago•0 comments

Kubernetes v1.34: Pods Report DRA Resource Health

https://kubernetes.io/blog/2025/09/17/kubernetes-v1-34-pods-report-dra-resource-health/
2•meysamazad•20m ago•0 comments

Show HN: Made NZ's member of parliament financial disclosure data searchable

https://open-register-of-pecuniary-interests.joshmcarthur.com/
1•sudojosh•20m ago•0 comments

Could a primordial black hole's last burst explain a mysteriously neutrino?

https://news.mit.edu/2025/could-primordial-black-holes-last-burst-explain-mysteriously-energetic-...
1•meysamazad•20m ago•0 comments

Why Is Xcode So Antagonistic to Reduced Vision?

https://thecodist.com/why-is-xcode-so-antagonistic-to-reduced-vision/
2•doppp•22m ago•0 comments

China bans its biggest tech companies from acquiring Nvidia chips, says report

https://www.tomshardware.com/tech-industry/artificial-intelligence/china-bans-its-biggest-tech-co...
2•thunderbong•26m ago•0 comments

How HR took over British business and got in the way of actual work

https://www.thetimes.com/business-money/companies/article/how-hr-took-over-british-business-6rg8q...
1•petethomas•30m ago•0 comments

LLVM: Our AI policy vs. code of conduct and vs. reality

https://discourse.llvm.org/t/our-ai-policy-vs-code-of-conduct-and-vs-reality/88300
1•pabs3•31m ago•0 comments

Biotech firm announces 'pivotal step' in effort to bring back the dodo

https://www.cnn.com/2025/09/17/science/colossal-dodo-deextinction-rock-pigeon
1•petethomas•35m ago•0 comments

ABC Pulls Jimmy Kimmel Off Air for Charlie Kirk Comments After FCC Pressure

https://www.nytimes.com/2025/09/17/business/media/abc-jimmy-kimmel.html
15•standeven•36m ago•1 comments

Security Industry turns "Without Warranty" to "Supply Chain Attack, Shame on You

https://shrimp.starlightnet.work/notes/acl265cbxkqwjayx
2•pabs3•36m ago•0 comments

Things for OS 26

https://culturedcode.com/things/blog/2025/09/things-for-os-26/
1•SoKamil•39m ago•0 comments

WIP: A website for listing / finding free plants in your community

https://leafrens.com
2•fullstacking•47m ago•0 comments

China blocks sale of Nvidia AI chips

https://arstechnica.com/tech-policy/2025/09/china-blocks-sale-of-nvidia-ai-chips/
5•virgildotcodes•50m ago•0 comments

The "Rainey Street Ripper": An Independent Analysis of the Evidence

https://digital.library.txst.edu/items/86182f1f-3e7f-4ee5-8f41-ab446c35aeb5
2•apwheele•57m ago•0 comments

Meta Ray-Ban Display: A Breakthrough Category of AI Glasses Quest Blog Store

https://www.meta.com/en-gb/blog/meta-ray-ban-display-ai-glasses-connect-2025/
1•pastorenick•1h ago•1 comments

DeepSeek-R1 incentivizes reasoning in LLMs through reinforcement learning

https://www.nature.com/articles/s41586-025-09422-z
3•Anon84•1h ago•0 comments

Java 25, Ready to Perform to the Limit

https://hanno.codes/2025/09/16/heres-java-25/
1•gm678•1h ago•0 comments

The Economic Impacts of AI: A Multidisciplinary, Multibook Review [pdf]

https://kevinbryanecon.com/BryanAIBookReview.pdf
1•mathattack•1h ago•0 comments

The Mystery of England's Oldest Name

https://www.youtube.com/watch?v=yg-JaPCjq4c
1•Apocryphon•1h ago•0 comments

What do you guys think about Gaussian Splats?

1•Arun_Kurian•1h ago•0 comments

Ask HN: How to be ambitious/hungry again?

2•Poomba•1h ago•4 comments