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

Underappreciated Books to Learn Object Oriented Design and UML?

1•shivajikobardan•2m ago•0 comments

Council reaches position on Chat Control

https://www.consilium.europa.eu/en/press/press-releases/2025/11/26/child-sexual-abuse-council-rea...
1•tonoto•2m ago•1 comments

Replace internal links in the new Gato AI Translations (WordPress)

https://gatoplugins.com/blog/replace-internal-link-urls-with-v15-2-of-gato-ai-translations-for-po...
1•leoloso•3m ago•0 comments

Show HN: VibeJar – Mood Tracking and Journal

https://apps.apple.com/in/app/vibejar-mood-tracker-journal/id6755709551
1•mohninad•8m ago•0 comments

LLMs: The gift that keeps on giving

https://mltrenches.substack.com/p/llms-the-gift-that-keeps-on-giving
2•druub•11m ago•0 comments

The Monocab Project

https://www.monocab-owl.de/english-language/
1•robin_reala•11m ago•0 comments

DevOps Manifesto: Against SiloOps and SoloOps – DevOps Is Software Engineering

https://alterloop.dev/manifesto/
1•francescobianco•11m ago•0 comments

30+ AI coding agents in the terminal, IDE, web

https://awesome-coding-ai.vercel.app/
2•ohong•12m ago•0 comments

Show HN: Preshiplist – A fast way to ship waitlist websites without headaches

https://www.preshiplist.co/
1•Frederick_22xAI•13m ago•0 comments

Counter Galois Onion: Improved encryption for Tor circuit traffic

https://blog.torproject.org/introducing-cgo/
1•fanf2•13m ago•0 comments

Judicial Malfeasance and Palestine Action

https://www.craigmurray.org.uk/archives/2025/11/judicial-malfeasance-and-palestine-action/
1•jjgreen•16m ago•0 comments

Security Flaws in DeepSeek-Generated Code Linked to Political Triggers

https://www.crowdstrike.com/en-us/blog/crowdstrike-researchers-identify-hidden-vulnerabilities-ai...
2•shalmanese•20m ago•0 comments

$9 author sues over 384M Indian Jones movie

https://www.google.com/search?q=+author+sues+over+384M+Indian+Jones+movie
2•asdefghyk•23m ago•1 comments

Model Context Protocol (MCP) Specification 2025-11-25

https://mcp.mintlify.app/specification/2025-11-25
1•somesnm•25m ago•0 comments

AI Legal system disruption with contract engineering

https://kyc.co/articles/vertical-markets-vanishing-lawyers-and-the-new-operating-system-of-commerce
1•steven555•28m ago•1 comments

I Reverse-Engineered Exa.ai Infrastructure Cost with Napkin Math

https://www.kshivendu.dev/blog/exa-napkin-math
1•kshivendu•30m ago•1 comments

Hurl 7.1.0, the Pretty Edition

https://hurl.dev/blog/2025/11/26/hurl-7.1.0-the-pretty-edition.html
2•jicea•31m ago•0 comments

Show HN: How to Quickly and Free Remove TikTok Video Watermarks

https://vdraw.ai/tiktok-watermark-remover
1•passioner•37m ago•0 comments

ArcOS v1.1 – A Natural-Language Cognitive Operating System

https://github.com/Takeshi-Sakamoto5/ArcOS-v1.1
1•takeshi_sakamo•40m ago•1 comments

Which Browser Should I Use In 2025

https://hackaday.com/2025/04/07/which-browser-should-i-use-in-2025/
2•heatherleelove•43m ago•0 comments

Health Care Systems

https://rodgercuddington.substack.com/p/healthcare-systems
2•freespirt•43m ago•1 comments

A New Blueprint: House of Leaves and AI

https://oxonianreview.com/articles/a-new-blueprint-house-of-leaves-and-ai
1•bryanrasmussen•45m ago•0 comments

Building Self-Hosting Rails Applications: Design Decisions and Why

https://sendbroadcast.net/blog/self-hosting-rails
1•amalinovic•47m ago•0 comments

Foreign tourists to pay extra fee to visit US national parks

https://www.bbc.com/news/articles/c1kpnxvpgy2o
1•mikhael•49m ago•1 comments

Benchmarking GPT-5.1 vs. Gemini 3.0 vs. Opus 4.5 across 3 Coding Tasks

https://blog.kilo.ai/p/benchmarking-gpt-51-vs-gemini-30-vs-opus-45
2•heymax054•54m ago•0 comments

Recent Performance and Administration Features in Firebird

https://www.ibphoenix.com/articles/art-00000602
1•mariuz•55m ago•0 comments

Show HN: Lifeline – Visual memory journal with emotion auras and AI companion

https://mylifelineapp.com/
1•Remi_Etien•57m ago•0 comments

Why Pricing Power Is the Most Important Economic Signal No One Tracks

https://capitalfolly.com/
2•d_e_solomon•1h ago•2 comments

Should R ecosystem be a choice for longer-term projects?

1•northlondoner•1h ago•0 comments

If you're building an AI product, interface is your primry competitive advantage

https://eleganthack.com/ux-is-your-moat-and-youre-ignoring-it/
2•kaizenb•1h ago•0 comments