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?

Buttercut: Edit Videos with Claude Code

https://github.com/barefootford/buttercut
1•earcar•6m ago•0 comments

Anthropic's Mythos Will Force a Cybersecurity Reckoning–Just Not the One You Th

https://www.wired.com/story/anthropics-mythos-will-force-a-cybersecurity-reckoning-just-not-the-o...
2•joozio•6m ago•0 comments

Category Theory Illustrated – Logic

https://abuseofnotation.github.io/category-theory-illustrated/05_logic/
1•boris_m•10m ago•0 comments

Codebases – Million Lines of Code

https://informationisbeautiful.net/visualizations/million-lines-of-code/
1•IndySun•10m ago•1 comments

How Poor Am I? – See Where You Stand in Global Wealth

https://howpoorami.org
1•thunderbong•11m ago•0 comments

Trump administration proposes budget cuts to science

https://www.scientificamerican.com/article/trump-administration-proposes-massive-budget-cuts-to-s...
1•ZunarJ5•12m ago•0 comments

New Chromium-based web browser for SEO

https://serplens.com
1•brodieclark•20m ago•1 comments

What have been the greatest intellectual achievements?

https://www.thinkingcomplete.com/2017/09/what-have-been-greatest-intellectual.html
2•o4c•22m ago•0 comments

Show HN: Contrails – App to watch coding agents chats and save them to your repo

https://github.com/ThreePalmTrees/Contrails
1•Contrails•22m ago•0 comments

Gnome OS revealed what Linux is becoming

https://www.makeuseof.com/i-tried-gnome-os-and-it-showed-me-where-linux-is-actually-heading/
2•ForHackernews•25m ago•0 comments

I built an LLM Wiki and RAG solution: here's a demo for a security KB

https://99helpers.com/wiki/security-kb
1•nickk81•27m ago•1 comments

Mutually Automated Destruction: The Escalating Global A.I. Arms Race

https://www.nytimes.com/2026/04/12/technology/china-russia-us-ai-weapons.html
2•Leomuck•33m ago•1 comments

Strong Model First or Weak Model First? A Cost Study for Multi-Step LLM Agents

https://llm-spec.pages.dev/
1•vsekar•34m ago•0 comments

Why "Travel Inspiration" is the biggest UX gap in TravelTech

https://www.lupath.ai/
1•LUpath•37m ago•0 comments

Brocards for Vulnerability Triage

https://blog.yossarian.net/2026/04/11/Brocards-for-vulnerability-triage
1•ramimac•38m ago•0 comments

JVM Options Explorer

https://chriswhocodes.com/vm-options-explorer.html
2•0x54MUR41•39m ago•0 comments

Fix monitor that goes black, off or blinks due to static electricity in chair

https://aalonso.dev/blog/2023/how-to-fix-monitor-that-goes-black-off-due-to-static-electricity-in...
1•cyclopeanutopia•41m ago•1 comments

Running AI Agents in a Sandbox

https://oligot.be/posts/ai-sandbox/
1•oligot•43m ago•0 comments

Left-Wing Social Darwinism

https://www.rechristianize.com/blog/social-darwinism/left-wing-social-darwinism.html
1•Egret•50m ago•0 comments

Show HN: 3D Tik Tak Toe (Hard)

https://arthur-ficial.github.io/tictactoe-3d/
1•franze•50m ago•1 comments

MiniMax M2.7 Is Now Open Source

https://firethering.com/minimax-m2-7-agentic-model/
25•steveharing1•1h ago•4 comments

Artemis III Proposed Landing Sites

https://artemis-iii.technex.us
1•hparadiz•1h ago•0 comments

Linux kernel doesn't care about your disk health

https://simpleobservability.com/blog/linux-kernel-doesnt-care-disk-health
2•khazit•1h ago•0 comments

Making memory safe language but easy to use

https://github.com/Vix-Programing-language/Vix-programing-language
2•MrBatata•1h ago•1 comments

Doom, Played over Curl

https://github.com/xsawyerx/curl-doom
3•creaktive•1h ago•0 comments

Show HN: Toy Python Lisp interpreters based on the 1960 McCarthy paper

https://github.com/jhud/lisp
3•disconnection•1h ago•0 comments

Why Scotland Succeeded

https://www.ageofinvention.xyz/p/age-of-invention-why-scotland-succeeded
2•Khaine•1h ago•0 comments

Bourbaki: A Unified Foundation for Mathematics [video]

https://www.youtube.com/watch?v=EQ3w-YcP4q4
2•hnlyman•1h ago•0 comments

I built a tool to answer "why does this user have access to X?" in AD

https://github.com/alparn/whohas
1•Alpn13•1h ago•1 comments

Rapidly Scaffold Agents, MCP Servers, APIs, Websites on AWS

https://awslabs.github.io/nx-plugin-for-aws/
2•cogwirrel•1h ago•0 comments