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?

Why has Shopify dropped React Native?

https://newsletter.pragmaticengineer.com/p/shopify-native-mobile
1•theanonymousone•18s ago•0 comments

The AI margin collapse is gathering pace

https://martinalderson.com/posts/ai-margin-collapse-gathering-pace/
1•martinald•54s ago•0 comments

An LLM Workflow That Reproduces, Improves, Extends Published Economics Research

https://www.nber.org/papers/w35782
1•ano-ther•1m ago•0 comments

Show HN: Relay – a harness for AI coding agents that recover and verify

https://relayevals.com
2•rsathwik07•1m ago•0 comments

Show HN: Mluva – Dictation and editable rewrites for Omarchy

https://github.com/1vecera/Mluva
2•1vecera•2m ago•0 comments

You Said No MCP

https://earendil.com/posts/you-said-no-mcp/
1•tosh•2m ago•0 comments

Car Is Sharing Data with Big Tech

https://www.consumerreports.org/electronics/personal-information/your-car-is-sharing-data-with-bi...
1•speckx•2m ago•0 comments

Agentic Hacks, Real Proofs: Inside Google's PageBreak Project

https://blog.google/security/agentic-hacks-real-proofs-inside-googles-pagebreak-project/
1•porridgeraisin•2m ago•0 comments

GPT-6.1 Sol (Max): Intelligence, Performance and Price Analysis

https://artificialanalysis.ai/models/gpt-6-1-sol
1•theanonymousone•2m ago•0 comments

Codex Security Cloud

https://learn.chatgpt.com/docs/security/setup
1•acossta•3m ago•0 comments

Attack your own AI agent in under 10 minutes – then secure it before deploying

https://www.humanbound.ai/blog/attack-your-own-ai-agent-in-under-10-minutes-then-secure-it-before...
1•Sofia_HB•4m ago•0 comments

Password-protecting an Nginx proxied site

https://aweirdimagination.net/2026/09/27/password-protecting-an-nginx-proxied-site/
1•speckx•5m ago•0 comments

Automating eval design and hillclimbing with Claude

https://claude.dev/blog/automating-eval-design-and-hillclimbing/
1•gmays•6m ago•0 comments

The Life and Death of Microsoft Clippy, the Paper Clip the World Loved to Hate

https://www.artsy.net/article/artsy-editorial-life-death-microsoft-clippy-paper-clip-loved-hate
1•cs702•7m ago•0 comments

Electrification efficiency: The world will need less energy after the transition

https://hannahritchie.substack.com/p/electrification-energy-efficiency
2•thelastgallon•7m ago•0 comments

GPT6.1 Sol

1•BIOcanse•8m ago•0 comments

Sonnet 5.5 has the heaviest token use we've measured; pricing matches GPT-6 Sol

https://artificialanalysis.ai/articles/claude-sonnet-5-5
1•ilamont•9m ago•0 comments

Wrong, Not Broken

https://aws.amazon.com/blogs/aws-insights/wrong-not-broken/
1•ibobev•10m ago•0 comments

A Brief Perspective on Deep Learning Using Common Lisp [video]

https://www.youtube.com/watch?v=Yo4eqoRC1o0
1•ibobev•10m ago•0 comments

Unix File and Directory Permissions and Modes

https://wpollock.com/AUnix1/FilePermissions.htm
1•ibobev•12m ago•0 comments

Show HN: Dialedin.bio – Upload lab PDFs, log how you feel, see what lines up

https://dialedin.bio/
1•redigaffi•12m ago•0 comments

OpenAI officially allows using ChatGPT subscriptions with 3rd party apps

https://help.openai.com/en/articles/20001542-using-your-chatgpt-plan-in-other-apps-and-sites
2•apitman•13m ago•0 comments

Plugin Extensions

https://developers.openai.com/plugins/build/extensions
1•acossta•14m ago•0 comments

LZ in OpenZL

https://openzl.org/blog/2026-09-29-lz-in-openzl/
1•terrelln•15m ago•0 comments

AmpleGCG: Learning a Universal Generative Model for Jailbreaking

https://arxiv.org/abs/2404.07921
1•Anon84•17m ago•0 comments

OMG! We've found other agents! (music video)

https://www.youtube.com/watch?v=mkPVbufgtOw
2•dwaltrip•19m ago•1 comments

Please add prompt caching to Jev-style models

https://emschwartz.me/please-add-prompt-caching-to-jev-style-models/
1•emschwartz•19m ago•0 comments

AI Data Centers – U.S. vs. China

https://aidatacenterindex.com/compare/united-states-vs-china/
1•smartmic•19m ago•0 comments

Show HN: Why can't your agent have sweet dreams?

https://github.com/Simar-malhotra09/pi-sheep
1•0sake_rs•23m ago•0 comments

The lakehouse serving fight is on

https://startree.ai/resources/beyond-databricks-and-clickhouse-125k-qps-on-open-tables/
2•dashdoesdata•23m ago•0 comments