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?

Intel Tumbles After Manufacturing Snags Bedevil Comeback

https://www.bloomberg.com/news/articles/2026-01-22/intel-gives-weak-forecast-after-supply-shortag...
1•petethomas•1m ago•0 comments

Microsoft Edge Constantly at 100% CPU Usage on OS X

https://imgur.com/6Sowi8C
2•princevegeta89•1m ago•1 comments

Verizon completed its $20B acquisition of Frontier Communications

https://www.verizon.com/about/news/introducing-frontier-verizon-company
1•samgutentag•5m ago•0 comments

Ask HN: Have you managed to switch to Bluesky for tech people?

2•fuegoio•12m ago•4 comments

South Korea launches landmark laws to regulate artificial intelligence

https://www.japantimes.co.jp/business/2026/01/22/tech/south-korea-ai-startups-law/
3•anigbrowl•12m ago•0 comments

Multiclaude – Lightweight Multiagent Orchestrator

https://github.com/dlorenc/multiclaude
1•curmudgeon22•13m ago•0 comments

Amazon plans thousands more corporate job cuts next week, sources say

https://www.reuters.com/business/world-at-work/amazon-plans-thousands-more-corporate-job-cuts-nex...
6•austinallegro•16m ago•0 comments

FSNotes 7 – Remarkable fast plain text notes

https://fsnot.es/v7/
1•birdculture•16m ago•1 comments

EU Plans to Unfreeze Trade Deal with US and Vote on Ratification

https://www.bloomberg.com/news/articles/2026-01-22/eu-plans-to-unfreeze-trade-deal-with-us-and-vo...
3•alephnerd•17m ago•2 comments

SVG Path Editor

https://yqnn.github.io/svg-path-editor/
1•gurjeet•17m ago•0 comments

FIPS Dependencies and Prebuilt Binaries

https://www.docker.com/blog/fips-dependencies-and-prebuilt-binaries/
2•LaurentGoderre•19m ago•0 comments

Linum v2 - 2B parameter, Apache 2.0 licensed text-to-video models (360p, 720p)

https://www.linum.ai/field-notes/launch-linum-v2
1•samaysharma•20m ago•0 comments

Car insurance telematics: The privacy trade-off of OBD-II vs. Mobile Apps

https://suretyinsights.com/blog/dongle-vs-app-the-hardware-of-usage-based-insurance
2•insuranceguru•20m ago•0 comments

Joseph Wright of Derby – All Works

https://www.wikiart.org/en/joseph-wright/all-works
2•susam•21m ago•0 comments

Inspired by skin ligament for robotic face covered with living skin

https://www.cell.com/cell-reports-physical-science/fulltext/S2666-3864(24)00335-7
1•wjb3•21m ago•3 comments

Autodesk cuts 7% of workforce to redirect investments to AI, cloud

https://www.reuters.com/business/world-at-work/autodesk-lay-off-about-7-workforce-2026-01-22/
5•austinallegro•22m ago•0 comments

Digital Admin Day

https://matthewquerzoli.com/#/blog/02-01-2026-digital-admin-day
1•Quiza12•23m ago•0 comments

Pervasive Monitoring Is an Attack

https://ctrlaltroute.com/2026/01/15/rfc-7258-pervasive-monitoring-is-an-attack/
3•fosco•25m ago•0 comments

VibeTensor: AI-Generated Deep Learning Tensor Library

https://github.com/NVlabs/vibetensor
2•arjvik•25m ago•0 comments

CliFM: The shell-like, command line terminal file manager

https://github.com/leo-arch/clifm
2•modinfo•26m ago•0 comments

Gastown, and where software is going

https://www.chainguard.dev/unchained/gastown-and-where-software-is-going
1•curmudgeon22•26m ago•0 comments

One of the more meta ways we've used the Roo Code and SlackHQ feature this week

https://twitter.com/roocode/status/2014469239395197214
1•hrudolph•27m ago•0 comments

Brex is joining forces with Capital One

https://twitter.com/pedroh96/status/2014450912497201289
1•joshuawright11•27m ago•1 comments

Claude Code is suddenly everywhere inside Microsoft

https://www.theverge.com/tech/865689/microsoft-claude-code-anthropic-partnership-notepad
3•cebert•28m ago•1 comments

Why Medium's AI Content Policy Is Already Obsolete

https://medium.com/@gp2030/why-mediums-ai-content-policy-is-already-obsolete-bc86f63fcb70
2•light_triad•30m ago•1 comments

Overrun with AI slop, cURL scraps bug bounties to ensure "intact mental health"

https://arstechnica.com/security/2026/01/overrun-with-ai-slop-curl-scraps-bug-bounties-to-ensure-...
6•cratermoon•33m ago•0 comments

Open-source tool to obfuscate Postgres data with deterministic rules

https://github.com/Ofsen/pg-obfuscate
1•ofsen•33m ago•1 comments

75 Years of Mathematical Oncology

https://www.biorxiv.org/content/10.64898/2026.01.13.699306v1
1•mathoncbro•35m ago•1 comments

Climate engineering would alter the oceans, reshaping marine life

https://theconversation.com/climate-engineering-would-alter-the-oceans-reshaping-marine-life-new-...
4•PaulHoule•36m ago•0 comments

Community Benchmarks: Evaluating Modern AI on Kaggle

https://blog.google/innovation-and-ai/technology/developers-tools/kaggle-community-benchmarks/
1•gmays•38m ago•0 comments