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?

Show HN: Meter – web scraping change detection, orchestration bypass antibot

https://www.meter.sh/
1•hankwilliamsjr•29s ago•0 comments

Elsevier threatens others for linking to Sci-Hub but does so itself

https://eve.gd/2019/08/03/elsevier-threatens-others-for-linking-to-sci-hub-but-does-it-itself/
1•fanf2•55s ago•0 comments

I'm Betting That OpenAI Will Go Broke

https://www.nytimes.com/2026/01/13/opinion/openai-ai-bubble-financing.html
1•oppodeldoc•1m ago•0 comments

You Need a Kitchen Slide Rule

https://entropicthoughts.com/kitchen-slide-rule
1•aebtebeten•2m ago•0 comments

Korean prosecutor seeks death sentence for ex-leader Yoon over martial law

https://apnews.com/article/south-korea-yoon-martial-law-death-sentence-26b90a07c792ec2ba91619cec5...
2•saubeidl•2m ago•0 comments

How to Plan Your 2026 Kubernetes Budget

https://wozz.io/blog/kubernetes-budget-planning-2026
1•wozzio•2m ago•0 comments

Calmness Is a Superpower (2022)

https://stephango.com/calmness
1•Brajeshwar•3m ago•0 comments

Command K Bars

https://maggieappleton.com/command-bar
2•Brajeshwar•3m ago•0 comments

Why do SublimeText, VSCode Ctrl-Shift-P instead of Ctrl-K for the command bar?

https://digitalseams.com/blog/why-do-sublime-text-and-vs-code-use-ctrl-shift-p-for-the-command-bar
2•Brajeshwar•3m ago•0 comments

Inference-Time Constitutional AI

https://github.com/mdiskint/Hearth
1•mdiskint37•4m ago•0 comments

Using a M5AtomS3R to display live bus arrival info

https://puntofisso.net/blog/posts/esp32-tfl/
2•speckx•4m ago•0 comments

I wish rust had keyword arguments

https://github.com/tcdent/kwarg-rs
1•tcdent•5m ago•0 comments

Show HN: Self-host Reddit – 2.38B posts, works offline, yours forever

https://github.com/19-84/redd-archiver
1•19-84•7m ago•0 comments

Former IPCC Contributors Accuse Org of Corruption and Scientific Misconduct

https://twitter.com/ABridgen/status/2010802055347085461
1•quirk•8m ago•1 comments

2025 Font Awards

https://www.font-awards.com
1•zacharytcohen•8m ago•0 comments

Mystery Havana virus device cost at least $10M and fits in a bag

https://www.the-express.com/news/us-news/195930/havana-syndrome-us-spies-struck-down
1•01-_-•8m ago•0 comments

I have built a learning-only personal computer for my kid

https://old.reddit.com/r/RASPBERRY_PI_PROJECTS/comments/1q8du52/i_have_built_a_learningonly_perso...
2•brisky•10m ago•0 comments

Ask HN: What made you move back to HTML-to-PDF in production?

1•gokulsiva•10m ago•0 comments

Show HN: Test in Production with AI Agents

https://papercuts.dev
2•Sayuj01•10m ago•0 comments

Quantum navigation system tested at sea

https://www.strath.ac.uk/whystrathclyde/news/2025/quantumnavigationsystemsuccessfullytestedatsea/
1•6LLvveMx2koXfwn•11m ago•0 comments

Show HN: Inline comment translation in Neovim for faster code reading

https://github.com/noir4y/comment-translate.nvim
1•noir4y•12m ago•0 comments

I recreated a runnable virus launch panel from Hackers (1995) on a PowerBook Duo

https://blog.simone.computer/recreating-hackers-movie-ui
1•syx•14m ago•0 comments

Show HN: One RSS Feed for the Most Popular HN Bloggers (2025 Rankings)

https://rss-aggregator.philippd.workers.dev
2•7777777phil•15m ago•1 comments

Be Wary of Digital Deskilling

https://calnewport.com/be-wary-of-digital-deskilling/
2•L0in•15m ago•0 comments

Five Practical Lessons for Serving Models with Triton Inference Server

https://talperry.com/en/posts/genai/triton-inference-server/
2•talolard•15m ago•1 comments

Show HN: DynamicScreen – Free dynamic screen tool for streaming and focus

https://dynamicscreen.online/zh-CN/
1•nio5787•15m ago•1 comments

Show HN: Add custom icons to macOS Finder sidebar favorites

https://github.com/ivg-design/SidebarFavorites
1•ivg-design•16m ago•0 comments

Anthropic Did Not Make a Mistake in Cutting Off Third-Party Clients

https://12gramsofcarbon.com/p/tech-things-anthropic-did-not-make
3•theahura•16m ago•0 comments

Show HN: Qonvo –Group chat that visualizes conversations as a graph in real-time

https://qonvo.xyz
1•alphatesterguy•16m ago•0 comments

Dynamic Context Discovery

https://cursor.com/blog/dynamic-context-discovery
2•gmays•16m ago•0 comments