frontpage.
newsnewestaskshowjobs

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•1y 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•1y 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?

Running Apache DolphinScheduler with Spark on Kubernetes: A Deployment Guide

https://medium.com/@ApacheDolphinScheduler/running-apache-dolphinscheduler-with-spark-on-kubernet...
1•DSOfficial•23s ago•1 comments

Show HN: AgentNest, self-hosted sandboxes for AI agents

https://github.com/mihirahuja1/agentnestOSS
1•mihir_ahuja•1m ago•0 comments

A Stargate for Data

https://twitter.com/willdepue/status/2074178395462848800
1•gmays•2m ago•0 comments

Inside An Exposed WebDAV Malware Delivery Lab

https://www.rapid7.com/blog/post/tr-exposed-webdav-malware-delivery-lab-analysis/
1•onthedole•5m ago•0 comments

Why Agents Suck at Authentication: `auth-services-skills` vs. Reality

https://skilldb.dev/blog/why-agents-suck-at-authentication-auth-services-skills-vs-reality
1•dev_chad•12m ago•1 comments

Dune II, RTS on C64 [video]

https://www.youtube.com/watch?v=smiQnlbqpKw
1•schyzomaniac•17m ago•2 comments

GitHub issues $100k bounty for critical RCE vulnerability

https://runtimewire.com/article/github-issues-100-000-bounty-for-critical-rce-vulnerability-discl...
2•update•21m ago•1 comments

Run large language models at home, BitTorrent‑style

https://petals.dev/
2•snorbleck•22m ago•0 comments

Why Stanford Students Walked Out on Sundar Pichai's Commencement Speech

https://www.wired.com/story/big-interview-stanford-students-booing-sundar-pichai/
2•1vuio0pswjnm7•25m ago•1 comments

Ask HN: Will AI assistants become photorealistic video?

2•general_reveal•27m ago•0 comments

Ask HN: How to make AI better at writing prose?

1•remywang•28m ago•0 comments

Show HN: The latest and most advanced version of Adsense, sponsored by Google

https://www.3emalak.com/2026/07/get-adsense-approval-after-rejection.html
1•omeraliamm•29m ago•0 comments

Own the Loop: A Field Guide to Agent Harnesses

https://twitter.com/aparnadhinak/status/2073079029624943040
2•gmays•34m ago•1 comments

Supply chain will eventually be cyberattacked

https://medium.com/@vektormemory/your-supply-chain-will-eventually-be-cyberattacked-fb556d7d5008
2•vektormemory•34m ago•0 comments

De-complect: Skill to remove braided complexity from projects

https://github.com/danverbraganza/de-complect
3•nvader•35m ago•0 comments

Show HN: Grimoire – Best Practices for Everyone Installed for Your AI Agents

https://github.com/jeffreytse/grimoire
1•jeffreytse•36m ago•0 comments

House passes NDAA 216–212 to integrate Israel and US militaries

https://twitter.com/DropSiteNews/status/2080043694804312106
3•slowin•36m ago•0 comments

OpenAI's accidental cyberattack against Hugging Face is science fiction

https://simonwillison.net/2026/Jul/22/openai-cyberattack/
2•abhisek•39m ago•0 comments

Protecting our FLOSS commons from LLMs

https://blog.codeberg.org/protecting-our-floss-commons-from-llms.html
2•acmnrs•40m ago•0 comments

Show HN: LitigationBench. A Litigation Task-Based AI Benchmark

https://litco.ai/litigationbench
1•ybathaee•44m ago•0 comments

Durable Objects Are Made for Agents

https://calv.info/durable-objects-are-made-for-agents
2•bretthoerner•44m ago•0 comments

China advances plans for single-stack IPv6 network, and surveillance-version

https://www.theregister.com/networks/2026/07/22/china-advances-plans-for-national-single-stack-ip...
3•Cider9986•44m ago•1 comments

Does It Take 4k API Calls to Score a Long Essay?

https://willpenman.com/4000-queries-to-4.html
2•wpenman•46m ago•0 comments

Programming experience is no longer a moat

https://kyrylo.org/software/2026/07/22/programming-experience-is-no-longer-a-moat.html
3•skellertor•47m ago•0 comments

Codeberg Bans Cryptocurrency Projects

https://codeberg.org/Codeberg/org/pulls/1254
2•intunderflow•48m ago•0 comments

The Microsoft Agent Framework Harness is now released

https://devblogs.microsoft.com/agent-framework/the-microsoft-agent-framework-harness-is-now-relea...
2•ms7892•49m ago•0 comments

Google fixing Android lock screen bug that lets Gemini send SMS without a PIN

https://www.theregister.com/security/2026/07/17/google-fixing-android-lock-screen-bug-that-lets-g...
1•Cider9986•49m ago•1 comments

Curl Noise

https://emildziewanowski.com/curl-noise/
3•kg•50m ago•1 comments

Model Routing Is Task Specific

https://twitter.com/jerryjliu0/status/2077537847951945742
1•gmays•51m ago•0 comments

Wikipedia for Mundane People and Events

https://minipedia.org/
3•eastoeast•52m ago•1 comments