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•11mo 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•11mo 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?

Kevin Kelly – Some Contemporary Heresies

https://kevinkelly.substack.com/p/some-contemporary-heresies
1•Balgair•42s ago•0 comments

Free Remote Access to FPGAs

https://ps1.fpgas.online/fpgas/
1•random__duck•1m ago•1 comments

JSON with Commas and Comments

https://nigeltao.github.io/blog/2021/json-with-commas-comments.html
1•chirsz•3m ago•1 comments

FinCEN Proposes Rule to Reform Programs Designed to Fight Illicit Finance

https://www.fincen.gov/news/news-releases/fincen-proposes-rule-fundamentally-reform-financial-ins...
1•bkudria•4m ago•0 comments

JSONC Specification

https://jsonc.org/
1•chirsz•4m ago•0 comments

Some LLM routers are injecting malicious tool calls

https://twitter.com/fried_rice/status/2042423713019412941
2•kotobuki•10m ago•0 comments

Claude Mythos Is Everyone's Problem

https://www.theatlantic.com/technology/2026/04/claude-mythos-hacking/686746/
3•JumpCrisscross•13m ago•0 comments

Mysterious Seafood Virus May Be Behind Emerging Eye Disease, Scientists Warn

https://gizmodo.com/mysterious-seafood-virus-may-be-behind-emerging-eye-disease-scientists-warn-2...
1•razorbeamz•15m ago•0 comments

.

https://cryptobriefing.com/covenant-ai-exit-bittensor-tao-falls/
1•omegaproto•16m ago•0 comments

How Accurate Are Google's A.I. Overviews?

https://www.nytimes.com/2026/04/07/technology/google-ai-overviews-accuracy.html
2•JumpCrisscross•17m ago•0 comments

Federal Court Denies Anthropic's Motion to Lift 'Supply Chain Risk' Label

https://www.nytimes.com/2026/04/08/technology/anthropic-pentagon-risk-circuit-court.html
2•JumpCrisscross•17m ago•0 comments

Claude – Scaling Managed Agents: Decoupling the Brain from the Hands

https://www.anthropic.com/engineering/managed-agents
2•melvinodsa•20m ago•0 comments

The Catalog That Does Not Spy

https://fhe.stickybit.com.br/FHE_ECOMMERCE_EBOOK_EN.html
1•TiMagazine•22m ago•0 comments

States are struggling to meet their clean energy goals Data centers are to blame

https://apnews.com/article/ai-data-centers-nevada-clean-energy-47d1b6633ed720962848f4b5b91e7d6b
2•1vuio0pswjnm7•23m ago•0 comments

Austria becomes latest to propose social media ban for children

https://www.bbc.com/news/articles/cwyv70de9exo
3•1vuio0pswjnm7•28m ago•0 comments

A few thoughs about AI videos

1•stjuan627•29m ago•0 comments

Chang'e Mission Samples Reveal How Exogenous Organic Matter Evolves on the Moon

https://english.cas.cn/newsroom/research-news/202604/t20260408_1155384.shtml
2•salkahfi•29m ago•0 comments

Installing OpenBSD on the Pomera DM250{,XY?}

https://jcs.org/2026/04/09/openbsd-dm250
2•jandeboevrie•31m ago•0 comments

Treasury Secretary and Fed Chair Convene Bank CEOs about Mythos Model Risks

https://www.reuters.com/business/finance/bessent-powell-warn-bank-ceos-about-anthropic-model-risk...
3•m-hodges•35m ago•0 comments

I write and publish blog posts from Glamorous Toolkit I (2023)

https://blog.veitheller.de/How_I_write_and_publish_blog_posts_from_Glamorous_Toolkit_I.html
1•Tomte•39m ago•0 comments

India proposes new rules to regulate news and political posts on social media

https://www.bbc.com/news/articles/ce9mx2j3xlxo
1•vinni2•39m ago•0 comments

You can install FreeBSD on these laptops without issues, claims OS maintainer

https://www.neowin.net/news/you-can-totally-install-freebsd-on-these-laptops-without-issues-claim...
1•bundie•41m ago•1 comments

Bun v1.3.12

https://bun.com/blog/bun-v1.3.12
5•Erenay09•47m ago•1 comments

Next SaaS replacement is an agent with a dashboard – kern

https://kern-ai.com/blog/agent-dashboards
2•obilgic•47m ago•0 comments

OpenJDK Interim Policy on Generative AI

https://openjdk.org/legal/ai
1•Tomte•47m ago•0 comments

Apple to shutter its first unionized US store in Maryland

https://www.reuters.com/business/world-at-work/apple-shutter-its-first-unionized-us-store-marylan...
9•golfer•52m ago•0 comments

Anthropic Model Scare Sparks Urgent Bessent, Powell Warning to Bank CEOs

https://www.bloomberg.com/news/articles/2026-04-10/anthropic-model-scare-sparks-urgent-bessent-po...
1•jmcdonald-ut•55m ago•0 comments

Show HN: Pixieterm – A Syncing SSH Client

https://github.com/vachanmn123/pixieterm-desktop
1•vachanmn123•55m ago•0 comments

Why I'm disappointed by Slow Productivity (2024) [Book Review]

https://epigrammetry.hypotheses.org/3960
1•goekjclo•56m ago•0 comments

OpenAI backs bill to exempt AI firms from harm lawsuits

https://www.wired.com/story/openai-backs-bill-exempt-ai-firms-model-harm-lawsuits/
10•holografix•57m ago•0 comments