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?

1•eeko_systems•18s ago

YouTube CEO says more AI moderation is coming despite creator backlash

https://www.dexerto.com/youtube/youtube-ceo-says-more-ai-moderation-is-coming-despite-creator-bac...
1•not4uffin•18s ago•0 comments

After Microsoft's $17.5B commitment, Amazon announces a $35B investment by 2030

https://timesofindia.indiatimes.com/business/india-business/amazon-doubles-down-on-india-announce...
1•whoknowsidont•20s ago•0 comments

India proposes charging OpenAI, Google for AI training; lobbying group protests

https://techcrunch.com/2025/12/09/india-proposes-charging-openai-google-for-training-ai-on-copyri...
1•ilamont•1m ago•0 comments

EPA website removes fossil fuels as cause of global warming

https://www.euronews.com/green/2025/12/10/we-look-ridiculous-us-government-website-removes-fossil...
1•OutOfHere•2m ago•0 comments

Ode to My Office Lethargy

http://andersource.dev/2025/02/02/ode-to-my-office-lethargy.html
1•andersource•4m ago•0 comments

Solving Boggle (2021)

https://benknoble.github.io/scribblings/2021-10-27-boggle/2021-10-27-boggle.html
1•bariumbitmap•5m ago•0 comments

Code agents does not handles Jupyter well, so I build a special AI agent for it

https://www.youtube.com/watch?v=DNDVSAUAMsc
2•loa_observer•7m ago•0 comments

PowerWash Simulator

https://store.steampowered.com/app/1290000/PowerWash_Simulator/
1•doener•8m ago•0 comments

US seizes oil tanker off coast of Venezuela

https://www.usatoday.com/story/news/politics/2025/12/10/us-venezuela-oil-tanker/87704943007/
5•geox•9m ago•0 comments

macOS Music Players

https://andreyor.st/posts/2025-12-10-macos-music-players/
2•ibobev•10m ago•0 comments

Show HN: Clearquran.ai – Multi-agent LLMs translate the Quran

https://clearquran.ai
2•talal-itani•11m ago•1 comments

Reproductive risk of Neonicotinoids: A review of male rodent studies

https://www.sciencedirect.com/science/article/pii/S0013935125021553?via%3Dihub
2•PaulHoule•12m ago•0 comments

Lithium-ion battery pack prices fall to $108/kWh

https://www.ess-news.com/2025/12/09/bnef-lithium-ion-battery-pack-prices-fall-to-108-kwh-stationa...
2•toomuchtodo•14m ago•1 comments

51% attack simulator for PoW blockchain

https://fifty-one-attack.fmiras.com
1•fmiras•14m ago•0 comments

The Bubble Is Labor

https://danielmiessler.com/blog/the-real-bubble-is-human-labor
2•janpio•20m ago•2 comments

Parkinson's Might Be in the Water

https://www.wired.com/story/scientists-thought-parkinsons-was-in-our-genes-it-might-be-in-the-water/
4•wjb3•20m ago•0 comments

Renormalization: Gemini AI helped me see sense and beauty in two turbulent years

https://renormalize.substack.com/p/on-renormalization
1•getnormality•21m ago•0 comments

Show HN: A non-encrypted password manager

https://www.bloodless.ai/
1•shayarma•28m ago•1 comments

AI-Generated Misstatement Risk:A Framework for Enterprise Organisations

https://zenodo.org/records/17885472
1•businessmate•28m ago•1 comments

Pg_ClickHouse: ClickHouse-Speed Analytics from Postgres

https://github.com/ClickHouse/pg_clickhouse
1•saisrirampur•30m ago•0 comments

DuckGPT – agent for solving complex coding problems

https://duckgpt.vercel.app
2•mrdw•31m ago•0 comments

AI will probably force you to gate your content

https://www.niemanlab.org/2025/12/ai-will-probably-force-you-to-gate-your-content/
3•coloneltcb•33m ago•0 comments

Trump's SAVE tool looks for noncitizen voters. It's flagging U.S. citizens too

https://www.npr.org/2025/12/10/nx-s1-5588384/save-voting-data-us-citizens
3•starkparker•33m ago•0 comments

Maybe we don't need a server

https://lecaro.me/20251203-maybe-we-do-not-need-a-server.html
2•todsacerdoti•34m ago•0 comments

Google adding second AI to Chrome

https://www.msn.com/en-us/news/technology/google-to-deploy-a-second-ai-in-chrome-to-make-sure-the...
1•drivingmenuts•34m ago•1 comments

Convenience store socks became Japan's coolest souvenir

https://www.bbc.com/travel/article/20251209-how-convenience-store-socks-became-japans-coolest-sou...
3•billybuckwheat•35m ago•0 comments

Show HN: QueueWatch – Laravel queue monitoring with real-time alerts

https://queuewatch.io
1•mvpopuk•38m ago•0 comments

Coatings: The surface behind space missions

https://blog.satsearch.co/2025-12-10-coatings-the-hidden-surface-behind-space-missions-with-acktar
3•kartikkumar•38m ago•0 comments

Earliest Evidence of Making Fire

https://www.nature.com/articles/s41586-025-09855-6
3•cf100clunk•39m ago•1 comments