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•8mo 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•8mo 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: Show HN: I built a narrative game about running a thrift shop

https://store.steampowered.com/app/2961120/Shop_Crush/
1•hollowlimb•15s ago•0 comments

Meta's new AI team delivered first key models internally this month

https://www.reuters.com/technology/metas-new-ai-team-has-delivered-first-key-models-internally-th...
1•geox•3m ago•0 comments

Why AI Agents Increase External AI Reliance

https://www.aivojournal.org/why-ai-agents-increase-external-ai-reliance/
1•businessmate•3m ago•1 comments

Veronika the cow astounds science with first consistent case of tool use

https://english.elpais.com/science-tech/2026-01-20/veronika-the-cow-astounds-science-with-first-c...
1•t-3•4m ago•0 comments

New H-1B Rules Hurt Tech Companies 3x More Than the Staffing Firms [OC]

https://theh1brecords.substack.com/p/analysis-of-517874-petitions-reveals
1•codebyaditya•5m ago•1 comments

Weaponizing Calendar Invites: A Semantic Attack on Google Gemini

https://www.miggo.io/post/weaponizing-calendar-invites-a-semantic-attack-on-google-gemini
1•thunderbong•5m ago•0 comments

Show HN: Vib-OS, vibecoded a operating system

https://github.com/viralcode/vib-OS
2•viralcode•5m ago•0 comments

The Power of the Powerless [pdf]

https://www.nonviolent-conflict.org/wp-content/uploads/1979/01/the-power-of-the-powerless.pdf
1•andsoitis•5m ago•0 comments

The first 100 days as a Renovate maintainer

https://www.jvt.me/posts/2026/01/21/renovate-100-days/
1•speckx•5m ago•0 comments

Ask HN: How to find companies that use ChatGPT?

1•Poomba•5m ago•0 comments

North Carolina erased medical debt for 2.5M people

https://text.npr.org/nx-s1-5678541
3•mooreds•10m ago•0 comments

Tesla crash in Germany: Even far right AfD voters no longer want Musk's cars

https://www.fr.de/wirtschaft/profitieren-tesla-leidet-unter-elon-musk-deutsche-autobauer-94131264...
4•doener•11m ago•0 comments

One Question Every Leader Must Answer About AI – Yuval Noah Harari [video]

https://www.youtube.com/watch?v=VoRbPxyo2uU
2•beklein•11m ago•0 comments

Who Owns Your Data?

https://werd.io/who-owns-your-data/
2•mooreds•13m ago•0 comments

Global AI Adoption in 2025 – A Widening Digital Divide [pdf]

https://www.microsoft.com/en-us/research/wp-content/uploads/2026/01/Microsoft-AI-Diffusion-Report...
1•gmays•13m ago•0 comments

Show HN: Bricolaje – Inteligent Terminal Assistant

https://github.com/bricolaje-app/bricolaje
1•aqny•14m ago•0 comments

Realtime WASD-explorable world generation from a single image

https://app.daydream.live/creators/yondonfu/scope-overworld-plugin
2•chaghalibaghali•14m ago•0 comments

Europe has a lot to learn from Mark Carney

https://www.newstatesman.com/world/americas/north-america/us/2026/01/europe-has-a-lot-to-learn-fr...
4•robtherobber•14m ago•0 comments

Show HN: NanoDate – smallest date library (0.78KB) using native Intl API

https://github.com/qanteSm/NanoDate
1•qantesm•14m ago•0 comments

Japanese Cosmetics and Did You Know China Has an Industrial Policy for Lipstick?

https://www.governance.fyi/p/shiseidos-fall-japanese-cosmetics
1•RetiredRichard•15m ago•0 comments

Show HN: Client-side Google Location History visualizer

https://ethan.dev/utilities/location-history-visualizer/
1•Beefin•15m ago•0 comments

Show HN: Oauth2-forwarder – web oauth2 for dev containers

https://github.com/sam-mfb/oauth2-forwarder
2•sam256•15m ago•0 comments

Designing real systems with immutable data in Clojure

https://building.nubank.com/designing-real-systems-with-immutable-data-in-clojure/
1•simonpure•15m ago•0 comments

Canada Announces Divorce from America

https://charlotteclymer.substack.com/p/canada-announces-divorce-from-america
6•mooreds•16m ago•0 comments

Show HN: X-Pilot – Code-Driven AI Video Generator for Online Courses

https://www.x-pilot.ai/
1•bianheshan•16m ago•1 comments

The Only Reason to Explore Space

https://twitter.com/mmjukic/status/2013960862176845966
1•MrBuddyCasino•17m ago•0 comments

Integrating WebView with Nature Programming Language

https://nature-lang.org/blog/20260121
1•weiwenhao•20m ago•0 comments

Why_the_Future_Doesn%27t_Need_Us

https://en.wikipedia.org/wiki/Why_the_Future_Doesn%27t_Need_Us
1•nothrowaways•20m ago•0 comments

Curl Rate Limits

https://eissing.org/icing/posts/curl-rate-limits/
2•robin_reala•21m ago•0 comments

Show HN: Trading cards for learning – 16 albums, 2.7k cards, learn by collecting

https://tradingpicturecards.com/
1•Manuel_TPC•21m ago•0 comments