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•1y 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•1y 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?

Prof or Hobo?

https://www.proforhobo.com/
1•Paracompact•2m ago•0 comments

The Four Motivators (2016)

https://apenwarr.ca/log/20161213
2•downbad_•11m ago•0 comments

Sleep and Mortality: A Population-Based 22-Year Follow-Up Study (2007)

https://fermatslibrary.com/s/sleep-and-mortality-a-population-based-22-year-follow-up-study
1•downbad_•12m ago•1 comments

Local Root Privilege Escalation and Credential Disclosure in the Linux Kernel

https://blog.qualys.com/vulnerabilities-threat-research/2026/05/20/cve-2026-46333-local-root-priv...
1•signa11•14m ago•0 comments

China behind in LLM race but it can still win in AI, ex-Tencent AI lead says

https://www.scmp.com/tech/big-tech/article/3354394/china-losing-llm-race-it-can-still-win-ai-ex-t...
1•01-_-•14m ago•0 comments

Newsom signs order aimed at tackling AI job displacement

https://thehill.com/policy/technology/5889582-california-ai-job-losses/
1•01-_-•17m ago•0 comments

Ruby Arrays on Steroids (2014) [video]

https://www.youtube.com/watch?v=UX7xmhpUoi4
1•tosh•17m ago•0 comments

How AI is redefining Software Engineering

https://adlrocha.substack.com/p/adlrocha-how-ai-is-redefining-software
1•adlrocha•24m ago•0 comments

The Internet is rotting away (German)

https://netzpolitik.org/2026/breakpoint-das-internet-verrottet/
2•doener•24m ago•0 comments

Show HN:An LED display app that lights up concerts, events, and fan moments

https://play.google.com/store/apps/details?id=com.koko.board.glow&hl=en_US
1•k-Whale•29m ago•1 comments

uP

https://www.micropublication.org/
2•jruohonen•29m ago•1 comments

Hiro, AI job matching with real visa sponsorship data (550K jobs)

https://hirocareers.com
1•sharvenrane7•32m ago•0 comments

Wild Linker Update – 0.9.0

https://davidlattimore.github.io/posts/2026/05/24/wild-update-0.9.0.html
2•dabinat•34m ago•0 comments

WarpSpeed Just Beat Cursor

https://www.doubleai.com/research/warpspeed-approaches-speed-of-light-on-blackwell
2•ben_mussay•34m ago•0 comments

For developers without design skills, how do you leverage AI for front end dev?

1•boundless88•38m ago•0 comments

The anatomy of AI power in 2026

https://wayneresearch.com/research/anatomy-of-ai-power/
1•7moritz7•39m ago•0 comments

Solving the Technical Interview

https://functional.computer/blog/solving-the-technical-interview
1•adhi01•43m ago•0 comments

Climate tech companies are pivoting to critical minerals

https://www.technologyreview.com/2026/05/21/1137622/climate-tech-pivot-critical-minerals/
2•joozio•48m ago•0 comments

Expanding the human proteome with microproteins and peptideins – Nature

https://www.nature.com/articles/s41586-026-10459-x
1•janandonly•50m ago•0 comments

Big fears in Big Tech sector over Artificial Intelligence job losses

https://www.rte.ie/news/analysis-and-comment/2026/0524/1574792-tech-job-ai-analysis/
1•austinallegro•58m ago•0 comments

The Whitney Biennial Should Admit That Emilie Gossiaux Wants to Fuck Their Dog

https://www.jenn.site/the-whitney-biennial-should-admit-that-emilie-gossiaux-wants-to-fuck-their-...
2•gyomu•59m ago•1 comments

The Shape of Things

https://dianagabaldon.com/2022/05/the-shape-of-things-2/
1•jruohonen•1h ago•0 comments

Beyond HTTP: Exposing WebRTC and Local Game Servers via UDP Tunnels

https://claude.ai/public/artifacts/e608fb30-b023-4263-b693-ef04fab85be9
1•insta_tunnel•1h ago•0 comments

How should economists treat morality?

https://economist.com/finance-and-economics/2026/05/21/how-should-economists-treat-morality
2•andsoitis•1h ago•0 comments

USDA Conducts Oral Rabies Vaccination Efforts Targeting Wildlife (2025)

https://www.aphis.usda.gov/news/agency-announcements/usda-conducts-2025-oral-rabies-vaccination-e...
1•thunderbong•1h ago•0 comments

Token Price Index

https://tokenpriceindex.com
2•namenumber•1h ago•1 comments

Local LLMs perform better when you teach them to ask before they answer

https://www.xda-developers.com/local-llm-clarifying-questions-system-prompt/
8•froh•1h ago•3 comments

Catastrophe Is Emerging in the Most Vulnerable Places

https://www.nytimes.com/2026/05/18/business/iran-war-somalia-usaid.html
2•johntfella•1h ago•0 comments

Soaring Energy Prices Are Driving a Home Solar Boom

https://oilprice.com/Alternative-Energy/Solar-Energy/Soaring-Energy-Prices-Are-Driving-a-Home-Sol...
2•rustoo•1h ago•0 comments

Watching for File Changes on macOS

https://alexwlchan.net/2026/watch-files-on-macos/
1•subset•1h ago•0 comments