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

The engineer–manager pendulum is breaking

https://www.modernleader.is/p/pendulum-revisited
1•gpi•32s ago•0 comments

Bending Emacs – Episode 6: Overlays

https://xenodium.com/bending-emacs-episode-6-overlays
1•todsacerdoti•1m ago•0 comments

LinkedIn is loud, and corporate is hell

https://ramones.dev/posts/linkedin-is-loud/
2•austinallegro•3m ago•0 comments

VybeCam – find the perfect song that matches your vibe – like Shazam in reverse

https://apps.apple.com/app/apple-store/id6749338267?pt=118080429&ct=HackerNews&mt=8
1•donemanuel•6m ago•0 comments

Hybrid dark-pool DEX architecture on Solana

1•DarkVeil•7m ago•0 comments

Amazon: Who pays the price? – DW Documentary [video]

https://www.youtube.com/watch?v=6r3x2t872Pc
1•eternalreturn•7m ago•0 comments

Stop Hacklore – An Open Letter

https://www.hacklore.org/letter
1•birdculture•10m ago•0 comments

Predicting eukaryotic gene models combining deep learning&hidden Markov model

https://www.nature.com/articles/s41592-025-02939-1
1•bookofjoe•13m ago•0 comments

GameShell: Game to learn (or teach) how to use standard commands in a Unix shell

https://github.com/phyver/GameShell
1•sebg•17m ago•0 comments

The AI boom is based on a fundamental mistake

https://www.theverge.com/ai-artificial-intelligence/827820/large-language-models-ai-intelligence-...
1•Anon84•21m ago•0 comments

Bomb-proof your website with mirroring

https://brandonrohrer.com/hosting7.html
2•sebg•22m ago•0 comments

Nucleus Genomics founder Kian Sadeghi caught lying on TBPN

https://twitter.com/cremieuxrecueil/status/1993460627126284383
1•totalhealthopt•23m ago•0 comments

Generalized Worley Noise

https://ianthehenry.com/posts/generalized-worley-noise/
1•leephillips•26m ago•0 comments

Puzzle Financial CEO spends Thanksgiving hiding his federal ban on Wikipedia

https://patrickstoica.com/puzzle-statement/#wikipedia-edit-war-sasha-orloff-personally-removes-fr...
2•pstoica•27m ago•1 comments

DeepSeekMath-V2: Towards Self-Verifiable Mathematical Reasoning [pdf]

https://github.com/deepseek-ai/DeepSeek-Math-V2/blob/main/DeepSeekMath_V2.pdf
11•fspeech•30m ago•1 comments

Enveloped vs. Non-Enveloped Virus(2022)

https://virologyresearchservices.com/2022/05/22/enveloped-vs-non-enveloped-viruses/
1•rolph•30m ago•0 comments

Russia's only pad for crew launches suffers major damage

https://www.russianspaceweb.com/baikonur_r7_31.html#cabin
3•zhan_eg•31m ago•1 comments

Show HN: CLI Figma .fig –> .json for LLM

https://github.com/kreako/fig2json
1•kreako•32m ago•0 comments

Not send play slip on a digital safe

1•Roax•34m ago•0 comments

GitLab Interface Redesign

https://docs.gitlab.com/user/interface_redesign/
3•maxloh•36m ago•0 comments

I accidentally stumbled upon one of the Catholic Church's darkest secrets

https://garethgore.substack.com/p/how-i-accidentally-stumbled-upon
3•Anon84•37m ago•0 comments

SEC probes Jefferies over First Brands disclosures

https://www.ft.com/content/86d90ce5-5800-4514-a757-f46a38aa521d
1•zerosizedweasle•41m ago•0 comments

Apple TV Pulls 'The Hunt' Show over Plagiarism Claims

https://www.macrumors.com/2025/11/27/apple-tv-show-hunt-pulled-plagiarism-claims/
2•kotaKat•41m ago•0 comments

.NET 10 and NuGet Audit: Finding Root Packages for Transitive Vulnerabilities

https://www.appsoftware.com/blog/net-10-and-nuget-audit-identifying-root-packages-for-vulnerable-...
1•appsoftware•41m ago•0 comments

Why have so many people stopped posting on social media?

https://www.rte.ie/brainstorm/2025/1127/1546045-why-have-we-stopped-posting-on-social-media-psych...
1•austinallegro•42m ago•2 comments

Unprecedented levels of forever chemicals found in dolphins and whales

https://phys.org/news/2025-11-unprecedented-chemicals-dolphins-whales.html
2•measurablefunc•43m ago•0 comments

Idempotency Keys

https://www.morling.dev/blog/on-idempotency-keys/
2•redbell•46m ago•0 comments

A graph is worth 1000 tables

https://crimede-coder.com/blogposts/2025/GraphsBetterThanTables
2•apwheele•47m ago•0 comments

What does it mean to understand language?

https://arxiv.org/abs/2511.19757
1•sebg•47m ago•0 comments

Principles of Program Analysis

https://www.researchgate.net/publication/265352570_Principles_of_Program_Analysis
1•ibobev•51m ago•0 comments