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?

Show HN: Give your AI agent a brain that understands your codebase

https://github.com/bitloops/bitloops
1•sergiopreira•11s ago•0 comments

Compared a few OpenClaw hosting setups

https://docs.google.com/spreadsheets/d/1tVqYh8fAWLAFAuuM3-G0WVoFqY6VKJ8pgFdS3zvux80/edit?gid=2137...
1•VishnuTech•4m ago•0 comments

Forum

https://bestsugardaddyapps.com/forum/
2•whatsupdog•8m ago•0 comments

A blog post is a query for people who will route interesting stuff to you

https://www.henrikkarlsson.xyz/p/search-query
1•James72689•11m ago•0 comments

Useful Security Tooling

https://app.securl.online
1•ktbatterham•14m ago•0 comments

Molecular Dynamics on Apple M4

https://github.com/vyasgiridhar/moleqular
1•vyasgiridhar•18m ago•0 comments

My indie app was named too close to competitors and I burnt my fingers

2•phalgun_g•22m ago•0 comments

Ask HN: What LLM models are you using and why?

1•rubyn00bie•25m ago•1 comments

Ask HN: Why do hotels etc. WiFi networks all use captive portals?

1•tgsovlerkhgsel•27m ago•0 comments

What right has a "personal fortune" to be anything but working capital?

2•silexia•29m ago•0 comments

Private Hosted OpenClaw that can connect to your data with included AI models

https://platform.joinable.ai
1•tnac•32m ago•0 comments

Show HN: Machine – One VM per Project

1•katspaugh•33m ago•0 comments

Directory of Blogs with a /Now Section

https://nownownow.com/
2•James72689•35m ago•0 comments

Five LLM agents play Werewolf in-browser, each with a private DuckDB

https://kayhan.dev/posts/013-werewolf-five-agents-one-browser/
1•keynha•41m ago•0 comments

My Wi-Fi Was Faster Than Ethernet So I Fixed It

https://www.youtube.com/watch?v=pzb7py2HeqA
1•iamflimflam1•52m ago•0 comments

An example of functional slop code

https://manemasters.vip/
1•AndrewKemendo•54m ago•1 comments

Driving

https://jzhao.xyz/posts/driving
1•wonger_•58m ago•0 comments

Groww beat every odd to get here. Now what?

https://the-ken.com/newsletters/two-by-two/groww-beat-every-odd-to-get-here-now-what/
1•vidyesh•1h ago•0 comments

AI Poop Analysis App Offered to Sell Me Database of Its Users' Poops

https://www.404media.co/ai-poop-analysis-app-offered-to-sell-me-access-to-its-users-poops/
2•tjek•1h ago•0 comments

Tesla Solar Roof is on life support as it pivot to panels

https://electrek.co/2026/05/14/tesla-solar-roof-promise-vs-reality-pivot-panels/
22•celsoazevedo•1h ago•8 comments

In Japan, we don't see robots as a threat: just a form of presence in the world

https://english.elpais.com/science-tech/2026-05-16/takeshi-yoro-anatomist-in-japan-we-dont-see-a-...
1•pilingual•1h ago•0 comments

Danger Testing

https://www.dangertesting.com/
1•skogstokig•1h ago•0 comments

Anyone on the Internet Can Ring Your Doorbell

https://www.abgeo.dev/blog/anyone-can-ring-your-doorbell
1•jrdres•1h ago•0 comments

Coal Makes a Comeback, Fueled by War in the Middle East

https://www.wsj.com/business/energy-oil/coal-makes-a-comeback-fueled-by-war-in-the-middle-east-fb...
2•JumpCrisscross•1h ago•0 comments

Grok vs. ChatGPT vs. Gemini Comparison 2026: Complete Guide (Tested)

https://aithinkerlab.com/grok-vs-chatgpt-vs-gemini-comparison-2026/
1•carlual•1h ago•1 comments

We refrigerated our way out of needing each other

https://pilgrima.ge/p/the-middleman
1•momentmaker•1h ago•0 comments

Achieving last-iterate convergence in a QNN via an autonomous Gmetric driver

https://github.com/unbconductor/psi.emergence
1•psiemergence•1h ago•0 comments

Grafana Labs internal source code accessed

https://twitter.com/grafana/status/2055827123236171827
16•jschorr•1h ago•3 comments

Show HN: Serene Bach – a Go weblog engine that runs as CGI or HTTP

https://github.com/serendipitynz/serenebach
2•takkyun•1h ago•0 comments

Show HN: Brokkr - Scalable cluster management for GPU/HPC workloads

https://github.com/jackthepunished/brokkr
1•bhdr26k•1h ago•0 comments