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?

A Map of Every Lighthouse on the Planet

https://mapped.earth/lighthouses/world
1•karakoram•1m ago•0 comments

Don't be fooled–LLMs don't reason

https://www.technologyreview.com/2026/10/02/1145639/dont-be-fooled-llms-dont-reason/
1•leopoldj•1m ago•0 comments

Show HN: SOC2 Auditor Skill

https://github.com/heychristoph/soc2-auditor
1•heychristoph•1m ago•0 comments

Show HN: Wake-word spotter with a constant 5 KB state, running in the browser

https://awareliquid-o1-sound-demo.static.hf.space/index.html
1•EverestAn•3m ago•0 comments

Extracting Tasks from Millions of Agent Runs

https://laminar.sh/blog/extracting-tasks-from-agent-runs
3•rainhunter•6m ago•0 comments

Diesel prices fall as EU considers releasing 50M barrels under Trump pressure

https://www.ft.com/content/97200b07-755c-40ce-a50b-b51666bd4b7e
1•alephnerd•7m ago•0 comments

Claude-Shaped Science

https://www.anthropic.com/research/claude-shaped-science
5•famouswaffles•8m ago•1 comments

Benchmarking retrieval for agents on messy real-world company knowledge

https://www.kapa.ai/blog/company-knowledge-bench
1•emil_sorensen•9m ago•0 comments

GamesByAI – 528 browser games made with AI, and which tools made them

https://gamesbyai.win/stats/
1•kvickan•10m ago•0 comments

Nobody Is Thinking Anymore

https://yusufaytas.com/nobody-is-thinking-anymore
6•workatwork•11m ago•0 comments

Researchers Drove a Chinese EV into an Underground Mine. It Kept Calling China

https://autos.yahoo.com/ev-and-future-tech/articles/researchers-drove-chinese-ev-underground-1557...
1•cainxinth•12m ago•0 comments

TickTick knows what you planned. Vulpie knows what you did

https://medium.com/@vulpie.ai.support/ticktick-knows-what-you-planned-vulpie-knows-what-you-actua...
1•VulpieAi•13m ago•0 comments

Nvidia/OpenShell: Safe, private runtime for autonomous AI agents

https://github.com/NVIDIA/OpenShell
1•gmays•15m ago•0 comments

Show HN: Wrapper – open a live terminal session from your phone

https://www.wrapper.sh/
1•icanvardar•15m ago•0 comments

The Looming Closure of China's AI Frontier

https://www.aei.org/foreign-and-defense-policy/the-looming-closure-of-chinas-ai-frontier/
2•ironyman•16m ago•0 comments

Slowly, then all at once: AI agents that know how a company works

https://www.nijho.lt/post/mindroom-at-ionq/
1•msmalina•17m ago•0 comments

Show HN: Hotel Lobby AI Video Generator – Two Photos to Rap Duet

https://hotellobbygenerator.net/
1•jerry5678•18m ago•0 comments

What MkDocs 2.0 means for your documentation projects

https://squidfunk.github.io/mkdocs-material/blog/2026/02/18/mkdocs-2.0/
1•taubek•20m ago•0 comments

Anyone Can Build an App Now, but Who Is Going to Pay for It?

https://www.vincentschmalbach.com/anyone-can-build-an-app-now-who-will-pay-for-it/
3•vincent_s•21m ago•2 comments

Don't Look Up

https://chrysalisbyauke.substack.com/p/dont-look-up
2•Poefke•22m ago•1 comments

Boston Dynamics Robot Hands

https://bostondynamics.com/blog/robot-hands-for-modern-ai-and-real-work/
2•zhoge•22m ago•0 comments

Show HN: Spens sandboxed, observable coding agents

https://spens.refwd.ai/
1•floydhead01•24m ago•0 comments

TransCAPI – UK bus and train API that measures how late things run

https://www.transcapi.com/
1•tcdc•24m ago•0 comments

GPT-6 Astra plays World of Warcraft for the first time with agent-wow

https://agent-wow.sh/gpt-6-astra-plays-world-of-warcraft-for-the-first-time-with-agent-wow/
2•almostlit•27m ago•0 comments

Subscription Price Increase for Evernote

https://twitter.com/FiachraRM/status/2105859778283221324
2•serhack_•27m ago•0 comments

The Legend of von Neumann [pdf]

https://gwern.net/doc/math/1973-halmos.pdf
5•suopspaces•28m ago•1 comments

Nvidia DGX Spark 64GB Gives Developers More Ways to Build and Scale Local AI

https://blogs.nvidia.com/blog/local-ai-dgx-spark-64gb-sync/
3•6thbit•28m ago•0 comments

The 12th-century military disaster that forever changed global finance

https://bigthink.com/books/a-fabulous-debt/
3•RickJWagner•29m ago•0 comments

Future of PM-Tools

1•heurekamala•29m ago•0 comments

Protected Quick Tunnels: simple accountless authentication for your next project

https://blog.cloudflare.com/protected-quick-tunnels/
1•6thbit•29m ago•0 comments