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?

Show HN: Oh-My-Opencode: Async Subagents, Curated Agents and Tools

https://github.com/code-yeongyu/oh-my-opencode
1•mengmota•1m ago•0 comments

Sloot Digital Coding System

https://en.wikipedia.org/wiki/Sloot_Digital_Coding_System
1•surprisetalk•1m ago•0 comments

What was typography like in the Soviet Union? (A Bluesky thread.)

https://bsky.app/profile/spavel.bsky.social/post/3m7nzfi2opk2t
1•pavel_lishin•1m ago•0 comments

The "Homeless" Streamers of China [video]

https://www.youtube.com/watch?v=T9N6NobTcKs
1•surprisetalk•2m ago•0 comments

Prediction Markets Are Accurate

https://marginalrevolution.com/marginalrevolution/2025/10/prediction-markets-are-very-accurate.html
1•surprisetalk•2m ago•0 comments

What are the chances the cashless student cafeteria has a privacy policy?

https://www.aaronland.info/weblog/2025/11/20/cafeteria/#usf
1•surprisetalk•2m ago•0 comments

Why Young People Are Struggling to Communicate

https://time.com/7339501/young-people-struggling-to-communicate/
1•voxleone•3m ago•0 comments

Today Is Zamenhof Day

https://martinrue.com/zamenhofa-tago-18/
1•afisxisto•3m ago•0 comments

Sound Waves Can Fight Fires Without Water

https://www.scientificamerican.com/article/infrasound-tech-silences-wildfires-before-they-spread/
1•dangle1•3m ago•0 comments

Reliza and ShiftLeftCyber Announce Integration of SecureSBOM Signing into ReARM

https://rearmhq.com/blog/2025-12-15-rearm-securesbom-integration/
1•taleodor•4m ago•0 comments

Show HN: Intent vectors for AI search and knowledge graphs for AI analytics

https://platform.papr.ai/
1•amirkabbara•6m ago•0 comments

A rather simple text editing tool. Try it out

1•Blarckat•6m ago•0 comments

Show HN: Octopii – runtime for writing distributed applications in Rust

https://github.com/octopii-rs/octopii
1•janicerk•7m ago•0 comments

My Thoughts on AI Safety

https://www.noahpinion.blog/p/my-thoughts-on-ai-safety
2•ianrahman•7m ago•0 comments

Should anti-bullying approaches encourage kids to be 'upstanders?'

https://phys.org/news/2025-12-anti-bullying-approaches-kids-upstanders.html
1•PaulHoule•8m ago•0 comments

Show HN: A practical, code-driven guide to learning HTTP frameworks in Go

https://github.com/go-mizu/go-fw
1•tamnd•9m ago•1 comments

Drawing parallels between home renovation and software development

https://ounapuu.ee/posts/2025/12/15/construction-vs-software/
1•speckx•12m ago•0 comments

Marvell Has a 2nm Ultra-Power-Optimized Memory – ServeTheHome

https://www.servethehome.com/marvell-has-a-2nm-ultra-power-optimized-memory/
2•rbanffy•12m ago•0 comments

Hacking Endpoint to Identity: "ConsentFix" [video]

https://www.youtube.com/watch?v=AAiiIY-Soak
1•todsacerdoti•12m ago•0 comments

Rust Is Officially Part of Linux Mainline

https://weeklyrust.substack.com/p/rust-is-officially-part-of-linux
2•birdculture•12m ago•0 comments

Clean, Limitless Energy Exists. China Is Going Big in the Race to Harness It

https://www.nytimes.com/2025/12/13/climate/china-us-fusion-energy.html
1•lxm•13m ago•0 comments

Timing 'Hello, World'

https://antonz.org/timing-hello-world/
1•ingve•13m ago•0 comments

Nvidia Debuts Nemotron 3 Family of Open Models

https://nvidianews.nvidia.com/news/nvidia-debuts-nemotron-3-family-of-open-models
1•ksec•13m ago•0 comments

Virtualizing Nvidia HGX B200 GPUs with Open Source

https://www.ubicloud.com/blog/virtualizing-nvidia-hgx-b200-gpus-with-open-source
2•todsacerdoti•14m ago•0 comments

Adeptly

https://www.adeptly.app/
1•bellamoon544•15m ago•1 comments

Hype Correction

https://www.technologyreview.com/supertopic/hype-correction/
2•rbanffy•15m ago•0 comments

Picture book maker using AI Agent

https://c2story.com
1•jeyzolo•17m ago•1 comments

Perfetto: Production-grade client tracing, profiling for complex systems

https://github.com/google/perfetto
1•nateb2022•20m ago•0 comments

Show HN: Voilo Launching in Beta

https://voilo.app/productivity/
1•mattjung•21m ago•0 comments

El Salvador teams up with Elon Musk's xAI to bring AI to 5k public schools

https://apnews.com/article/el-salvador-xai-schools-artificial-intelligence-a1c6e41b84cf5cfa8a9b20...
3•JumpCrisscross•22m ago•0 comments