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?

Wada-Wayfinder

https://github.com/cvanelteren/wada-wayfinder/tree/main
1•cvanelteren•2m ago•0 comments

Valkey vs. Redis benchmark: Valkey 9.2.0 against Redis 8.12.0 on the same work

https://thestacksentinel.com/lab/valkey-vs-redis/
1•nspkord•5m ago•0 comments

What Criminologists Don't Say, and Why

https://www.city-journal.org/article/what-criminologists-dont-say-and-why
2•barry-cotter•16m ago•0 comments

Let you agents run anything, just not on your machine

https://mcprush.com/dhruvil-codes/airgap-mcp
1•bydhruvil•21m ago•0 comments

Can a Model Edit Its Own Weights? A Preliminary Study

https://morethanamachine.com/posts/can-a-model-edit-its-own-weights/
1•reddmachine•25m ago•0 comments

Kavach AI – Offline, sub-16ms PR security scanner with 1-click patches

https://github.com/marketplace/actions/kavach-ai-security-inspector
1•rajrajak99•28m ago•0 comments

Nature: Has AI just cracked Internet encryption?

https://www.nature.com/articles/d41586-026-03875-6
3•dn2k•31m ago•0 comments

Geneva plans cocaine prescription trial for crack addicts

https://www.swissinfo.ch/eng/various/geneva-is-trialling-the-prescription-of-cocaine-for-crack-ad...
1•extasetoi12•33m ago•0 comments

A little robot for your website, with a brain of his own

https://github.com/erdemozkan/boxnib
1•serdemozkan•36m ago•0 comments

Early Signs Point to a Super El Niño Collapse and a Shift to La Niña in 2027

https://www.severe-weather.eu/long-range-2/super-el-nino-collapse-la-nina-forecast-2027-seasonal-...
2•xbmcuser•36m ago•0 comments

Ad Spend: The overlooked economics of what happens after the click

https://merlin.studio/updates/ad-spend-the-overlooked-economics-of-what-happens-after-the-click
1•merlinstudio•37m ago•0 comments

Show HN: Ventium: A Verilog Pentium Implementation That Runs Win95 and Quake

https://github.com/AL-255/ventium
2•al255•38m ago•0 comments

'Tremendous' sight of bird 106 miles from home

https://www.bbc.co.uk/news/articles/c54gnz3r8ml2o
3•zeristor•40m ago•0 comments

One Claude model retires 30 Nov; two Gemini IDs silently change models 1 Dec

https://deepsweep.ai/blog/ai-model-retirements-november-december-2026
1•brad-mcevilly•40m ago•1 comments

'I told it to never call me again': AI bots wreak havoc with restaurant bookings

https://www.theguardian.com/business/2026/nov/28/ai-bots-wreak-havoc-uk-restaurant-bookings-meta-...
4•vrganj•47m ago•1 comments

As many as 38,000 children taken from Ukraine to Russia during war, report finds

https://www.cnn.com/2026/11/29/politics/ukrainian-children-taken-russia-war
5•MilnerRoute•47m ago•0 comments

What's Coming in Go

https://go.antonz.org/
1•valyala•51m ago•0 comments

Cryptography Incident Review Group Review Group

https://cirgrg.org/
1•nilsherzig•56m ago•0 comments

Show HN: LazygitGo – A native Git GUI powered by Lazygit (pure Go)

https://github.com/FleetingEcho/lazygitGo
2•FleetingSound•57m ago•0 comments

Run OpenCode on a local model with QVAC: no cloud, no API key, works offline

https://qvac.tether.io/blog/run-opencode-locally-with-qvac-a-coding-agent-with-no-cloud
2•thomasblanc•57m ago•0 comments

Claude Code and AI agents read local files directly

1•PromptSic•59m ago•0 comments

Strata: Ruby 0.49 – 1.8.7 in the Browser

https://strata.matiaskorhonen.fi/
1•thunderbong•1h ago•0 comments

HN: Sigvard – Goal-driven workflows for LLM fine-tuning

https://tour.sigvard.ai/guided-scenarios/
1•andreyserdyukde•1h ago•0 comments

Show HN: A Feynman-technique skill that explains security issues to developers

https://github.com/omarkurt/feynman-sec-tutor
2•dns•1h ago•0 comments

I built a better way to do A/B testing

https://kumailht.com/why-i-built-a-better-way-to-do-a-b-testing/
2•khet•1h ago•0 comments

Show HN: Gistsmith – AI meeting notes for Mac and iPhone, no bot joins

https://gistsmith.com/
1•senoldoganx•1h ago•0 comments

Show HN: Dohodnuto.com (Agreed) – Don't do additional work for free

https://dohodnuto.com/en/
1•matronator•1h ago•1 comments

DeepSeek Harness default data uploads raise concerns over $1M crypto theft

https://crypto.news/deepseek-harness-private-key-leak-crypto-theft/
2•ersinesen•1h ago•1 comments

Kubernetes 1.38: Deep dive into new alpha features

https://palark.com/blog/kubernetes-1-38-release-features/
1•airandme•1h ago•0 comments

SK Telecom to roll out standalone 5G for robots, factories

https://www.techinasia.com/news/sk-telecom-roll-standalone-5g-robots-factories
2•pryanshu89•1h ago•2 comments