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?

Humans were lighting fires from scratch a lot earlier than previously thought

https://www.economist.com/science-and-technology/2025/12/10/humans-were-lighting-fires-from-scrat...
1•andsoitis•28s ago•0 comments

Visual Thought AGI Architecture Blueprint- the missing key – imagination

https://visualthoughtagi.com
1•user2342ca•4m ago•1 comments

Humans & LLMs rate deliberation as superior to intuition on reasoning tasks

https://www.nature.com/articles/s44271-025-00320-8
1•gsf_emergency_6•6m ago•0 comments

Exactly-Once Semantics Are Possible

https://www.confluent.io/blog/exactly-once-semantics-are-possible-heres-how-apache-kafka-does-it/
1•intrepidsoldier•17m ago•0 comments

Show HN: Knav – Embed an AI assistant on your site, trained on your docs

https://www.knav.app/
1•randydigital•18m ago•0 comments

Cannabis dispensaries lead to reduced opioid prescriptions

https://medicalxpress.com/news/2025-11-cannabis-dispensaries-opioid-prescriptions-plausible.html
3•PaulHoule•18m ago•0 comments

Rubio's Directive on State Dept Typography, Re-Establishing Times New Roman

https://daringfireball.net/2025/12/full_text_of_marco_rubio_state_dept_directive_times_new_roman
1•coloneltcb•18m ago•1 comments

American Ports Have a Problem That's Costing You Money

https://www.youtube.com/watch?v=qFyYqUwXWLw
1•m-hodges•19m ago•0 comments

Be Careful with GIDs in Rails

https://blog.julik.nl/2025/12/a-trap-with-global-ids
1•julik•20m ago•0 comments

Cryptographers Show That AI Protections Will Always Have Holes

https://www.quantamagazine.org/cryptographers-show-that-ai-protections-will-always-have-holes-202...
2•EA-3167•23m ago•0 comments

Online child sexual abuse surges by 26% in year

https://www.theguardian.com/society/2025/dec/11/online-child-sexual-abuse-surges-by-26-percent-in...
2•vinni2•27m ago•0 comments

What border guards will look for on your socials, could be made to hand over DNA

https://www.afr.com/world/north-america/here-s-what-trump-s-border-officials-will-look-for-on-you...
2•KnuthIsGod•36m ago•2 comments

Malaysia uncovers $1B in power theft losses from illegal crypto mining

https://www.theblock.co/post/379443/malaysia-power-theft-crypto-mining
6•walterbell•44m ago•0 comments

The GPT Prophecy Begins (book trailer)

https://www.youtube.com/watch?v=u480QTwbA6o
1•nuevita70•50m ago•0 comments

Ask HN: End of Year Book Recommendations

4•marai2•52m ago•1 comments

Z-Image-Turbo

https://alternativeto.net/software/z-image-turbo/about/
1•indextts•57m ago•0 comments

Wenis

https://en.wikipedia.org/wiki/Wenis
1•oatsandsugar•58m ago•0 comments

Pslscale.com – AI facial analysis for attractiveness scoring

https://pslscale.com
2•czmilo•58m ago•1 comments

Is AI a Bubble? Why We're Betting on the Installation Phase

1•rchachra•1h ago•0 comments

Police swap suspect sketches for AI

https://www.washingtonpost.com/nation/2025/12/09/ai-police-suspect-sketch-arizona/
1•1659447091•1h ago•1 comments

Patterns.dev

https://www.patterns.dev/
3•handfuloflight•1h ago•0 comments

What Least Squares Assumes About Your Data

http://sebmestre.blogspot.com/2025/12/least-squares-is-just-maximum.html
1•sebastianmestre•1h ago•0 comments

Veteran-built iPhone steadiness tracker to help people avoid falls

3•jimlucas95338•1h ago•0 comments

Jonathan Blow new game announced. Uses new language and new engine

https://twitter.com/Jonathan_Blow/status/1998845944918618171
4•sergiotapia•1h ago•2 comments

DeepSeek is using Nvidia's banned Blackwell AI chips

https://www.cnbc.com/2025/12/10/nvidia-report-china-deepseek-ai-blackwell-chips.html
1•zyh888•1h ago•0 comments

AI Researcher: Replacing scientists with AI is evil

https://twitter.com/togelius/status/1997920576804143583
2•ks2048•1h ago•0 comments

My Favorite Self-Hosted Apps Launched in 2025

https://selfh.st/post/2025-favorite-new-apps/
3•shaunpud•1h ago•0 comments

The devious art of lying by telling the truth (2017)

https://www.bbc.com/future/article/20171114-the-disturbing-art-of-lying-by-telling-the-truth
1•1659447091•1h ago•0 comments

Do you keep an emotion or mood journal? Why do you do it, and has it helped you?

2•tenglvjun•1h ago•0 comments

Model Context Protocol (MCP) Support for Google Services

https://cloud.google.com/blog/products/ai-machine-learning/announcing-official-mcp-support-for-go...
1•happyopossum•1h ago•0 comments