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?

Firefox UI revamp sparks complaints, searches for alternatives (2014)

https://www.computerworld.com/article/1514198/firefox-ui-revamp-sparks-complaints-searches-for-al...
1•1gn15•2m ago•0 comments

Why and How China Will Win AI: A Systems Understanding of China's AI Playbook

https://www.zackaryia.com/blog/2025-12-11/why-and-how-china-will-win-ai/
1•Zackaryia•8m ago•0 comments

RFC1087 Ethics and the Internet (1989)

https://www.ietf.org/rfc/rfc1087.txt
3•1vuio0pswjnm7•9m ago•1 comments

Worst Technology Flops of 2025

https://www.technologyreview.com/2025/12/18/1130106/the-8-worst-technology-flops-of-2025/
3•devonnull•12m ago•0 comments

Microsoft Updates Windows 'To Stop Users from Downloading Google Chrome'

https://www.forbes.com/sites/zakdoffman/2025/12/18/microsoft-updates-windows-to-stop-users-downlo...
1•72f988bf•12m ago•1 comments

Recent discoveries on the acquisition of the highest levels of human performance

https://www.science.org/doi/10.1126/science.adt7790
1•tchalla•12m ago•1 comments

Evaluating Chain-of-Thought Monitorability

https://openai.com/index/evaluating-chain-of-thought-monitorability/
2•mfiguiere•13m ago•0 comments

Reimplementing Unix Correct: The Lost Bayesian Spelling Corrector

https://learningloom.substack.com/p/reimplementing-unix-correct-the-lost
1•atomicnature•14m ago•0 comments

Code Coverage

https://keploy.io/blog/community/understanding-code-coverage-in-software-testing
1•sophielane•19m ago•0 comments

A quantum mystery that stumped scientists for decades is solved

https://www.sciencedaily.com/releases/2025/12/251217082509.htm
2•croes•24m ago•0 comments

2026 Apple introducing more ads to increase opportunity in search results

https://ads.apple.com/app-store/help/ad-placements/0082-search-results
4•punnerud•24m ago•2 comments

Gut microbe Turicibacter prevents weight gain

https://newatlas.com/diet-nutrition/weight-gain-gut-microbe/
2•thunderbong•26m ago•0 comments

Getting bitten by Intel's poor naming scenes

https://lorendb.dev/posts/getting-bitten-by-poor-naming-schemes/
7•LorenDB•27m ago•2 comments

Caro – a local offline shell companion for when you forget commands (alpha)

https://www.caro.sh/
1•kobi_kadosh•27m ago•1 comments

Linux Foundation Annual Report 2025

https://www.linuxfoundation.org/resources/publications/linux-foundation-annual-report-2025
1•lawrencejgd•30m ago•0 comments

Brown University Shooting Suspect Found Dead in New Hampshire

https://www.vanityfair.com/news/story/person-of-interest-arrested-in-brown-shooting
1•sampo•31m ago•1 comments

Why OpenAI’s Move to Skills Matters If You’re Shipping AI Agents

https://medium.com/@ohansemmanuel/why-openais-move-to-skills-matters-if-you-re-shipping-ai-agents...
2•ohans•33m ago•1 comments

Nob – Turn any terminal AI-powered (Open Source)

https://github.com/hetpatel-11/nob
1•hkpatel•33m ago•0 comments

Building ScrapeForge in public starting tomorrow

1•Vishwas-Batra•35m ago•0 comments

Meta Is Developing a New AI Image and Video Model Code-Named 'Mango'

https://www.wsj.com/tech/ai/meta-developing-new-ai-image-and-video-model-code-named-mango-16e785c7
1•fortran77•39m ago•1 comments

Blackbox open source agentic coding tool that lives in your terminal

https://github.com/blackboxaicode/cli
1•rizkrob•40m ago•1 comments

Administration Plans to Break Up Premier Weather and Climate Research Center

https://www.nytimes.com/2025/12/17/climate/national-center-for-atmospheric-research-trump.html
1•zekrioca•40m ago•0 comments

Mistakes marred Australian telco firewall upgrade, contributing to deaths

https://www.theregister.com/2025/12/19/optus_emergency_outages_cause_report/
3•defrost•48m ago•0 comments

CDC Spelling Error Dictionary

https://ftp.cdc.gov/pub/health_Statistics/nchs/Software/mmds/2009/spell/mmds_spell.txt
1•gregsadetsky•52m ago•0 comments

I Made UTM Triggered Popups

1•matanblay•55m ago•0 comments

Man suspected in shooting at Brown and nuclear physicist has been found dead

https://www.theguardian.com/us-news/2025/dec/18/suspect-brown-university-shooting
2•pogue•56m ago•0 comments

Show HN: I Built UTMKit to Save Time on Popups Specifically UTM Triggered Popup

https://utmkit.io/
1•matanblay•56m ago•0 comments

An Alternative to Khan Academy

https://books.innings2.com/blog/general/khan_academy_alternative/
2•nutanc•1h ago•0 comments

My Downloads – Chrome Web Store

https://chromewebstore.google.com/detail/my-downloads/ienfdfooajmkbebiaplehejbamefbboi
1•mnunkowme•1h ago•0 comments

AI Vibe Coding, Is It Working? No

https://www.mindprison.cc/p/ai-vibe-coding-is-it-working-no
2•13years•1h ago•0 comments