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

AI Agents replacing mid-management, not developers

https://dontdos.substack.com/p/what-if-the-robots-came-for-the-org
2•sirnicolaz•1m ago•0 comments

Snake Bros Keep Getting Bitten by Their Lethal Pets. Only Zoos Can Save Them

https://www.wired.com/snake-bros-antivenom-index-zoos-influencers-chris-gifford/
1•robtherobber•2m ago•0 comments

We taught AI to write correct streaming SQL

https://github.com/risingwavelabs/agent-skills
1•WavyPeng•3m ago•0 comments

French Mobile Network Datasets

https://tech.marksblogg.com/france-open-mobile-network-data.html
1•marklit•4m ago•0 comments

The 800 page book that made me a web dev

1•wuhhh•5m ago•0 comments

Everything you ever wanted to know about terminals (but were afraid to ask)

https://xn--rpa.cc/irl/term.html
2•Antibabelic•10m ago•0 comments

Safety Companion App

https://apps.apple.com/us/app/kai-companion/id6756260239
1•Ilja_Gr•13m ago•1 comments

Emposat Denies Knowledge of Iran Using Chinese Satellite via Its Ground Stations

https://www.china-in-space.com/p/emposat-denies-knowledge-of-iran
1•JPLeRouzic•14m ago•0 comments

Pancreatic cancer mRNA vaccine shows lasting results in an early trial

https://www.nbcnews.com/health/cancer/pancreatic-cancer-mrna-vaccine-shows-lasting-results-early-...
4•doener•15m ago•0 comments

Anthropic Claude Code Leak Reveals Critical Command Injection Vulnerabilities

https://beyondmachines.net/event_details/anthropic-claude-code-leak-reveals-critical-command-inje...
3•croes•21m ago•1 comments

IEA: Solar overtakes all energy sources in a major global first

https://electrek.co/2026/04/19/iea-solar-overtakes-all-energy-sources-in-a-major-global-first/
2•Klaster_1•23m ago•1 comments

Libero – Gleam Library Renders REST Obsolete for Spas and Erlang-Based Clients

https://github.com/pairshaped/libero
2•MrJulia•24m ago•0 comments

Intel refreshes non-Ultra Core CPUs with new silicon for the first time

https://arstechnica.com/gadgets/2026/04/intels-non-ultra-core-cpus-are-new-silicon-this-year-for-...
3•rbanffy•27m ago•1 comments

Brave Premium

https://account.brave.com/?intent=checkout&product=origin
1•lijialjun•29m ago•1 comments

Forward Guidance with Mark Carney [video]

https://www.youtube.com/watch?v=uk2TZwkhi4E
1•pedalpete•29m ago•1 comments

A Crossroad at a Branch

http://www.vex.net/~trebla/haskell/crossroad.xhtml
2•sph•29m ago•0 comments

Ask HN: Scanslop.com on Reddit a Privacy Nightmare?

1•znpy•30m ago•0 comments

Viral Takeover [video]

https://www.youtube.com/watch?v=Cvb1mg2GxsY
1•alex1138•30m ago•0 comments

How Long Poop Stays in Your Body May Impact Your Health, Study Finds

https://www.sciencealert.com/how-long-poop-stays-in-your-body-may-impact-your-health-study-finds
9•mikhael•34m ago•1 comments

Show HN: VS Code extension that predicts Git merge conflicts before they happen

https://marketplace.visualstudio.com/items?itemName=SukantaSaha.mergeguard
2•lalata•35m ago•1 comments

Show HN: Translate LLM API Calls Across OpenAI, Anthropic, and Gemini

https://github.com/Oaklight/llm-rosetta
2•Oaklight•36m ago•0 comments

Just like phishing for gullible humans, prompt injecting AIs is here to stay

https://www.theregister.com/2026/04/19/just_like_phishing_for_gullible/
2•beardyw•37m ago•0 comments

OpenAI Executive Kevin Weil Is Leaving the Company

https://www.wired.com/story/openai-executive-kevin-weil-is-leaving-the-company/
1•joozio•40m ago•0 comments

Topology Meets Machine Learning: The Euler Characteristic Transform [pdf]

https://www.ams.org/journals/notices/202507/rnoti-p719.pdf
2•ganitam•42m ago•0 comments

Our Project Hail Mary: The Observability Setup Behind an Observability Tool

https://newsletter.signoz.io/p/our-project-hail-mary-the-observability
2•elza_1111•42m ago•0 comments

Why don't centre-pivot irrigation fields use hexagonal packing?

https://old.reddit.com/r/geography/comments/1sqedsf/why_dont_centrepivot_irrigation_fields_use/
2•calcsam•42m ago•0 comments

Diagnosing Random MariaDB Freezes on Frappe Cloud

https://frappe.io/blog/frappe-cloud/diagnosing-random-mariadb-freezes-on-frappe-cloud
2•TanmoySarkar•42m ago•0 comments

BreachForums logs reveal anonymizers of choice for shady characters

https://www.okta.com/blog/threat-intelligence/blocking_shady_network/
2•Cider9986•44m ago•1 comments

Ray Optics Simulation

https://phydemo.app/ray-optics/
2•the-mitr•44m ago•0 comments

The logical trap: why blocking "cheap" ads crashed my RPM by 60%

https://webmatrices.com/post/the-logical-trap-why-blocking-cheap-ads-crashed-my-rpm-by-60
1•bishwasbh•45m ago•0 comments