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?

Show HN: BitTorrent DHT Proxy – hiding your IP from DHT and trackers

https://www.janhouse.lv/blog/it/dht-proxy-hiding-ip-from-bittorrent-dht-trackers
2•Jnr•3m ago•0 comments

Iran Threatens to Start Attacking Major US Tech Firms on April 1

https://www.wired.com/story/iran-threatens-to-start-attacking-major-us-tech-firms-on-april-1/
2•jumploops•6m ago•1 comments

Start naming your useEffect functions, you will thank me later

https://neciudan.dev/name-your-effects
1•nnx•16m ago•0 comments

Autoscaling CI for Gitea in Rust

https://rustunit.com/blog/2026/03-30-gitea-ci-autoscaler/
1•y1n0•17m ago•0 comments

DreamLite: Lightweight On-Device Unified Model for Image Generation and Editing

https://carlofkl.github.io/dreamlite/
2•smusamashah•18m ago•0 comments

Uno-reverse: Who is gaslighting who now?

https://abscondita.com/blog/uno-reverse-who-is-gaslighting-who
2•_vaporwave_•18m ago•0 comments

How to Turn a Chicken Egg into a Drug Factory

https://www.nytimes.com/2026/03/26/science/biotechnology-pharmaceuticals-eggs.html
1•lxm•21m ago•0 comments

How do I turn on the Do Not Track feature?

https://support.mozilla.org/en-US/kb/how-do-i-turn-do-not-track-feature
1•greyface-•24m ago•0 comments

Claude Code Interactive Architecture

https://brandonrc.github.io/journey-through-claude-code/
2•bsgeraci•28m ago•1 comments

MIT 9.35 Perception, Spring 2024 [video]

https://www.youtube.com/watch?v=IPJC8loEmd4
1•mdp2021•28m ago•0 comments

Turn any idea into a printable coloring page with AI

https://coloringpage.live
1•jiruitao•29m ago•1 comments

Humans, Trust, and AI Job Replacement

https://hooda.xyz/blog/humans-trust-and-ai-job-replacement/
2•hooda•32m ago•0 comments

Precision Proactivity: Measuring Cognitive Load in Real-World AI-Assisted Work

https://arxiv.org/abs/2505.10742
1•wslh•32m ago•0 comments

Codey-V2 is out – stable release

https://github.com/Ishabdullah/Codey-v2
1•Ishymoto•34m ago•0 comments

Pretext's most interesting use cases have no DOM at all

https://cyrusradfar.com/thoughts/pretext-beyond-the-browser
2•cyrusradfar•37m ago•0 comments

Microsoft plans to build 100% native apps for Windows

https://www.windowslatest.com/2026/03/28/microsoft-plans-to-build-100-native-apps-for-windows-11-...
2•kbelder•40m ago•1 comments

Reverse engineering GTA San Andreas with autonomous LLM agents [video]

https://www.youtube.com/watch?v=zBQJYMKmwAs
2•LelouBil•41m ago•0 comments

Mission Control for AI Agents – Cyberpunk dashboard, zero deps, one HTML file

https://github.com/Audazia/solar-system-agentsIbuiltSolarSystemAgentsbecauseIwanted:1.Adashboardt...
1•AUDAZIA•41m ago•1 comments

(Quasi)auto-canonization is the greatest short-term challenge for AI

https://xcancel.com/AlexKontorovich/status/2038810855110742310#m
1•vi_sextus_vi•41m ago•0 comments

Microsoft in Talks with Chevron, Engine No. 1 over $7B Texas Power Plant

https://www.bloomberg.com/news/articles/2026-03-31/microsoft-in-talks-with-chevron-engine-no-1-ov...
2•mfiguiere•44m ago•0 comments

Show HN: macOS app to ensure package managers only allow packages 1+ week old

https://github.com/harryob2/ShieldGuard
1•haaz•45m ago•0 comments

Large-scale BTU study shows: solar panels last longer than previously thought

https://www.b-tu.de/en/news/article/31103-grossangelegte-btu-studie-zeigt-solaranlagen-halten-lae...
1•jbm•47m ago•0 comments

Australia readies social media court action citing teen ban breaches

https://www.reuters.com/sustainability/society-equity/australia-investigates-tech-giants-over-soc...
1•jnord•49m ago•0 comments

TK Solver: Comprehensive Mathematical Software Tool for Engineers

https://www.uts.com/Products/TKSolver
1•teleforce•50m ago•0 comments

Veo 3.1 Lite – Veo 3.1 Lite – Turn Any Idea into AI Videos Instantly

https://veo31lite.com
2•sarkory•53m ago•0 comments

GitHub has DMCA'd nearly all forks of the official Claude-code repo

https://github.com/anthropics/claude-code/forks
2•cg505•54m ago•2 comments

BCG's Data Warehouse Hacked – 3.17T Rows, Zero Authentication

https://codewall.ai/blog/how-we-hacked-bcgs-data-warehouse-3-17-trillion-rows-zero-authentication
1•theolivenbaum•57m ago•0 comments

Has GitLab Felt into the Enshittification?

https://gitlab.com/gitlab-org/gitlab/-/work_items/590689
1•sixthDot•1h ago•1 comments

North Korea-Nexus Threat Actor Compromises Widely Used Axios NPM Package

https://cloud.google.com/blog/topics/threat-intelligence/north-korea-threat-actor-targets-axios-n...
1•nettlin•1h ago•1 comments

Dark Code

https://twitter.com/saranormous/status/2039107773942956215
2•petethomas•1h ago•0 comments