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

Musk vs. Altman

https://www.courtlistener.com/docket/69013420/379/75/musk-v-altman/
1•46493168•1m ago•0 comments

Episode 41 of lava fountaining begins on Kilauea

https://www.hawaiinewsnow.com/2026/01/24/episode-41-lava-fountaining-begins-kilauea/
1•cratermoon•2m ago•0 comments

Videos Appear to Contradict Federal Account of Killing

https://www.nytimes.com/live/2026/us/minneapolis-shooting-ice
3•mickle00•4m ago•1 comments

A Complete Guide to Agents.md

https://www.aihero.dev/a-complete-guide-to-agents-md
1•SouravInsights•6m ago•0 comments

MCP is the New GraphQL

https://nadeeshacabral.com/posts/mcp-is-the-new-graphql/
2•lunarcave•6m ago•0 comments

Ask HN: How would you promote a song digitally?

1•radicalethics•8m ago•0 comments

Research After AI: Principles for Accelerated Exploration

https://gist.github.com/joelkuiper/d52cc0e5ff06d12c85e492e4295ca890
1•anon1253•10m ago•0 comments

Show HN: A tiny scalar that detects regression drift before CI tests fail

https://github.com/willshacklett/gv-drift-demo
1•PapaShack45•11m ago•0 comments

Career transition question – Assistance, MLOps guidance

1•Pierre_Esteves•14m ago•0 comments

ICE Releases RFI for User Tracking Tools

https://www.wired.com/story/ice-asks-companies-about-ad-tech-and-big-data-tools/
3•eoskx•15m ago•0 comments

The year is 1993, The Amiga is everything for me

https://old.reddit.com/r/amiga/comments/1qlw4ma/the_year_is_1993_the_amiga_is_everything_for_me/
1•doener•15m ago•0 comments

InsAIts Monitor AI agent communications for anomalies local, privacy-first

https://github.com/Nomadu27/InsAIts
1•MrSteaddy•19m ago•1 comments

Show HN: I embedded Claude inside a running Node app

https://github.com/genecyber/Reflexive
1•shannoncode•21m ago•0 comments

Surfaces with Klein bottle topology occur in fusion reactor fields

https://arxiv.org/abs/2506.11883
1•pizza•22m ago•0 comments

Lawmakers move to extend two cyber programs (again) in funding proposal

https://therecord.media/lawmakers-move-to-extend-two-cyber-programs-again
1•PaulHoule•25m ago•0 comments

What These Cockpit Lights Mean – ATR Simulator Walkthrough – Dark Cockpit

https://www.youtube.com/watch?v=Q7_PB6f2pqY
2•starkparker•29m ago•0 comments

Fuel Economy Fraud: Closing Loopholes That Increase U.S. Oil Dependence (2005) [pdf]

https://www.ucs.org/sites/default/files/2019-09/executive_summary_final.pdf
2•CGMthrowaway•31m ago•0 comments

Altman, Bezos and Zuckerberg donate to Trump's inauguration fund (2024)

https://www.npr.org/2024/12/13/nx-s1-5227874/trump-bezos-zuckerberg-amazon-facebook-open-ai-meta-...
13•pera•32m ago•1 comments

Bio-Theory Lab Notes: Growth Rates and Worm Brains

https://chillphysicsenjoyer.substack.com/p/bio-theory-lab-notes
1•crescit_eundo•34m ago•0 comments

Grainrad: Browser ASCII/Dithering Tool

https://grainrad.com/
2•smusamashah•42m ago•0 comments

Markdown Viewer – Get This Extension for Firefox (En-US)

https://addons.mozilla.org/en-US/firefox/addon/markdown-viewer-extension/
2•dp-hackernews•43m ago•0 comments

Using Information Entropy to Make Choices / Choose Experiments

https://blog.demofox.org/2025/10/05/using-information-entropy-to-make-choices-choose-experiments/
2•deadbishop•43m ago•0 comments

Daxfs Proposed as Newest Linux File-System

https://www.phoronix.com/news/DAXFS-Linux-File-System
3•Bender•44m ago•0 comments

CachyOS Starts 2026 by Switching to Plasma Login Manager, Live ISO Using Wayland

https://www.phoronix.com/news/CachyOS-January-2026
5•Bender•45m ago•0 comments

OptiMind: Research Model Designed for Optimization

https://huggingface.co/blog/microsoft/optimind
1•gmays•45m ago•0 comments

Almost 12,000 flights canceled as major winter storm bears down across US

https://ktla.com/news/nationworld/ap-over-8000-flights-canceled-as-major-winter-storm-bears-down-...
4•Bender•45m ago•0 comments

Dorodango: the hobby that took over Japan in 1999

https://www.youtube.com/watch?v=2H0r81kv5GA
1•n1b0m•49m ago•0 comments

Announcing winapp, the Windows App Development CLI

https://blogs.windows.com/windowsdeveloper/2026/01/22/announcing-winapp-the-windows-app-developme...
2•CharlesW•49m ago•0 comments

I don't write code anymore – I sculpt it

https://www.jerpint.io/blog/2026-01-24-i-dont-write-code-anymore-i-sculpt-it/
3•jerpint•49m ago•0 comments

We didn't ask for 'smart' cars – so why are we getting them?

https://www.autocar.co.uk/opinion/new-cars/we-didn%E2%80%99t-ask-smart-cars-so-why-are-we-getting...
7•breve•50m ago•3 comments