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?

The Structural Barriers to AI Lawyers

https://www.diffuseai.pub/p/the-structural-barriers-to-ai-lawyers
1•benbreen•30s ago•0 comments

Why banning the recycling logo is progress in the fight against plastic waste

https://www.washingtonpost.com/climate-environment/2026/05/12/recycling-arrows-logo-california/
2•cainxinth•1m ago•0 comments

The Ettin Reranker Family

https://huggingface.co/blog/ettin-reranker
1•gmays•3m ago•0 comments

A open-source graph database that lives in your S3 bucket

https://github.com/namidb/namidb
1•matonseca•3m ago•0 comments

PureOS Crimson Released

https://puri.sm/posts/pureos-crimson-development-report-april-2026-pureos-crimson-released/
1•Hackbraten•4m ago•0 comments

Show HN: Glowing balls falling through a spinning maze

https://theabbie.github.io/mazeball
1•melector•5m ago•0 comments

Chromium publishes fixed exploit 4 years later, turns out it's unfixed

https://infosec.exchange/@rebane2001/116606719764376414
1•birdculture•7m ago•0 comments

I built a lightweight IRC-inspired web chat using Socket.IO

https://opn-chat-v1-freebuff.vercel.app
3•fcapuz•8m ago•0 comments

Dependency cooldowns are unfair; we should use phased rollouts instead

https://illegalcode.net/rfcs/phased_rollouts.html
1•stevehipwell•10m ago•0 comments

C constructs that still don't work in C++

https://lospino.so/blog/c-constructs-that-still-dont-work-in-cpp/
1•jalospinoso•11m ago•0 comments

Building NeXT from the Ground Up – Steve Jobs on Vision and Survival [video]

https://www.youtube.com/watch?v=s-a4aU1RUgM
1•Austin_Conlon•11m ago•0 comments

Palantir Protests Exclusion from U.S. Military Intelligence System Project

https://www.asiae.co.kr/en/article/2026052122200397267
6•billybuckwheat•12m ago•0 comments

Andrew Warkentin's Virtual OS Museum Collects 174GB of Ready-to-Use Vintage OSes

https://www.hackster.io/news/andrew-warkentin-s-virtual-os-museum-collects-174gb-of-ready-to-use-...
1•mobilio•12m ago•0 comments

Ten Little Algorithms #8: Miller-Rabin Primality Test (Living with Uncertainty)

https://www.embeddedrelated.com/showarticle/1808.php
1•jason_s•15m ago•0 comments

Nobody Knows What to Hire For. This Is the Only Stable Bet

https://newtonschooloftech.substack.com/p/nobody-knows-what-to-hire-for-this
2•ash1794•15m ago•0 comments

Mechanical Design in Codex

https://twitter.com/earthtojake/status/2057203608207466982
1•softservo•20m ago•0 comments

There’s a real chance you will not have the same job by the end of 2027

https://www.elenaverna.com/p/youll-lose-your-job-in-2027
6•jger15•21m ago•0 comments

Starship launch today, May 21, 2026

https://www.space.com/space-exploration/launches-spacecraft/spacex-launching-new-v3-starship-mega...
2•valgin2150•24m ago•0 comments

The LLM never writes the query: declarative search layer over sensitive records

https://judes.club/writing/the-llm-never-writes-the-query/
1•alechash•25m ago•0 comments

ACLU Secures $485,000 Settlement for FWC Biologist Fired over Charlie Kirk Post

https://live-awp-florida.pantheonsite.io/press-releases/civil-rights-lawyers-secure-485000-settle...
1•ceejayoz•26m ago•2 comments

Show HN: Open-source .docx editor library for building document apps

https://github.com/eigenpal/docx-editor
3•thisisjedr•28m ago•0 comments

Tom's Hardware is now putting brief synopses of its articles in the URL

https://mastodon.social/@gruber/116614001681044840
1•ndr42•28m ago•0 comments

What My Livewire Honeypot Caught in Its First 60 Hours

https://helgesver.re/articles/livewire-honeypot-first-60-hours
1•speckx•29m ago•0 comments

Show HN: ANML – A machine-first markup language for the agentic web (IETF Draft)

https://anmlfoundation.org
1•ajeskey•29m ago•0 comments

AI Tokenomics: How to Profitably Turn Tokens into Business Value [video]

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

Opening calc.exe from the S&Box C# sandbox

https://slugcat.systems/post/26-05-21-how-to-open-calc-exe-from-sbox/
2•logickkk1•33m ago•0 comments

Checking the math behind OpenAI and Anthropic's latest headlines

https://garymarcus.substack.com/p/checking-the-math-behind-openai-and
1•YeGoblynQueenne•34m ago•0 comments

The Day the U.S. TV Industry Died (1988)

https://spectrum.ieee.org/zenith-tv
2•Eridanus2•35m ago•0 comments

Show HN: Datasette Agent

https://simonwillison.net/2026/May/21/datasette-agent/
1•simonw•37m ago•1 comments

Ontario looks to ban reselling tickets for more than original price

https://www.cbc.ca/news/canada/toronto/ford-ticket-resale-price-cap-ontario-9.7135950
4•rkhleung•38m ago•2 comments