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

Switch to Codex

https://chatgpt.com/codex/switch-to-codex/
1•georgehill•47s ago•0 comments

Lib0xc: A set of C standard library-adjacent APIs for safer systems programming

https://github.com/microsoft/lib0xc
2•wooster•2m ago•0 comments

Aeon – an autonomous AI hedge fund research assistant

https://github.com/akshaylakkur/AEON
1•akshayl284•3m ago•0 comments

Show HN: Generate marketing material with your text and images in minutes

https://correctify.com.cy/
1•GiorgosGennaris•3m ago•0 comments

Auk Mini 2

https://www.auk.com/products/auk-mini-2
1•punnerud•4m ago•0 comments

LLMs Don't Understand BGP. Here's What It Takes to Change That

https://www.supertrace.ai/blog/llms-dont-understand-bgp
1•SamoyedFurFluff•5m ago•0 comments

The Rapid Evolution of Giant Daisies

https://nautil.us/the-rapid-evolution-of-giant-daisies-1280384
1•Brajeshwar•5m ago•0 comments

Doom port for the GL-iNet GL-BE10000 Slate 7 Pro travel router

https://github.com/atc1441/Slate7_pro_Doom
1•speckx•7m ago•0 comments

GDC Vibe Check – I Asked Nine Game Developers the Same Four Questions [video]

https://www.youtube.com/watch?v=BbiPKtIIJIA
1•swivelmaster•7m ago•0 comments

Show HN: An Agent First Slack CLI

https://github.com/tilework-tech/nori-slack-cli
1•theahura•8m ago•0 comments

AI predictions in the movie Electric Dreams (1984)

https://medium.com/@tk512/the-ai-predictions-in-the-movie-electric-dreams-1984-0c6a47a6326e
2•sgt•9m ago•0 comments

The College-Admissions Chess Game Is More Complicated

https://www.wsj.com/us-news/education/college-admissions-yield-rate-2fb30f42
2•apparent•10m ago•0 comments

Article explains a method to estimate parameter count of closed sourcemodels

https://www.lesswrong.com/posts/veFMEzDDyWaer2Sms/sanity-checking-incompressible-knowledge-probes
2•theanonymousone•12m ago•1 comments

Why Nihilism Is Great for Values

https://ajkprojects.com/why-nihilism-is-great-for-values.html
2•ashleynewman•13m ago•0 comments

A desktop that bends to me

https://isene.org/2026/05/Agency.html
2•speckx•14m ago•0 comments

Numbers and the launch algorithm of an indie game that was featured on itch.io

https://blog.luden.io/how-we-stayed-on-the-front-page-of-itch-io-for-over-a-month-8e0d0cf1cc17
3•gamescodedogs•15m ago•2 comments

DeepSeek v4, and the end of the OpenAI/Microsoft AGI clause

https://simonw.substack.com/p/deepseek-v4-and-the-end-of-the-openaimicrosoft
2•JumpCrisscross•18m ago•0 comments

Show HN: BeautyShot – easy macOS promo screenshots

https://bendansby.com/apps/beautyshot.html
2•webwielder2•21m ago•0 comments

Anti-DDoS Firm Heaped Attacks on Brazilian ISPs

https://krebsonsecurity.com/2026/04/anti-ddos-firm-heaped-attacks-on-brazilian-isps/
1•Bender•23m ago•0 comments

Strong types are a non-negotiable for LLMs

https://hireup.team/articles/strong-types-for-llms
1•rdaviz•24m ago•0 comments

Bsky.land – a photo stream from the Bluesky firehose

https://bsky.land/
2•bcks•24m ago•0 comments

I built GeoGuesser for guns, and its making money (no technical experince)

https://gunguesser.com
1•salad_vr•26m ago•3 comments

How can perplexity.com persist on the browser without extension

2•roscas•27m ago•1 comments

Agent Personality Score

https://agentpersonalityscore.com/
1•forthwall•27m ago•0 comments

OpenAI's advanced security: passkeys replace passwords/SMS and disable training

https://infosec.exchange/@tychotithonus/116500494420882843
1•speckx•29m ago•0 comments

The Resonance of Berkshire Hathaway

https://tinkelenberg.com/posts/the-resonance-of-berkshire-hathaway/
1•tinkelenberg•29m ago•0 comments

CachyOS Linux Performance Leading over Ubuntu 26.04 LTS, Fedora Workstation 44

https://www.phoronix.com/review/cachyos-ubuntu-2604-fedora-44
2•Bender•31m ago•0 comments

Linux Support Coming for the Asus ROG Raikiri II

https://www.phoronix.com/news/ASUS-ROG-RAIKIRI-II-Linux
1•Bender•31m ago•0 comments

IBM Granite 4.1 family of models

https://research.ibm.com/blog/granite-4-1-ai-foundation-models
2•srameshc•32m ago•0 comments

SRE at 53 watching my role get automated – how do I build something of my own?

1•TheFounderFile•34m ago•1 comments