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

Halley's Comet wrongly named: 11th-century monk predates British astronomer

https://www.universiteitleiden.nl/en/news/2026/01/halleys-comet-wrongly-named-11th-century-englis...
1•geox•2m ago•0 comments

Kycnot.me – Find KYC-Free Services

https://kycnot.me/
1•basilikum•2m ago•0 comments

Red Dwarfs Are Too Dim to Generate Complex Life

https://www.universetoday.com/articles/red-dwarfs-are-too-dim-to-generate-complex-life
1•nobody9999•4m ago•0 comments

StudDent – book student dental clinics in Poland

https://studdentpl.lovable.app
1•TsepoMkwebu•5m ago•1 comments

I'm not an academic, I'm an engineer

https://bits-chips.com/article/im-not-an-academic-im-an-engineer/
2•vismit2000•11m ago•0 comments

Do you remember what you read last year?

https://shawnsomething.substack.com/p/do-you-actually-remember-what-you
1•Shawn_Something•12m ago•0 comments

State of C++ 2026

https://devnewsletter.com/p/state-of-cpp-2026/
1•birdculture•12m ago•0 comments

Designer yeast turns sugar into lucrative chemical 3-HP

https://phys.org/news/2026-01-commercially-viable-biomanufacturing-yeast-sugar.html
1•PaulHoule•13m ago•0 comments

Cars by USA Got So Bad [video]

https://www.youtube.com/watch?v=1zzE-Qw5W9c
2•CHB0403085482•15m ago•0 comments

Two Stop Bits

https://twostopbits.com/news
1•basilikum•16m ago•0 comments

Show HN: I built v1 of Omni channel SDR Agent

1•kinj28•18m ago•0 comments

Top engineers at Anthropic, OpenAI say AI now writes 100% of their code

https://fortune.com/2026/01/29/100-percent-of-code-at-anthropic-and-openai-is-now-ai-written-bori...
2•jsemrau•19m ago•0 comments

Show HN: I trained a 9M speech model to fix my Mandarin tones

https://simedw.com/2026/01/31/ear-pronunication-via-ctc/
3•simedw•20m ago•0 comments

The Department of Justice Ignores Court Orders Because It Knows It Can

https://www.americanmuckrakers.com/p/the-department-of-justice-ignores
23•davidbwheeler•20m ago•3 comments

Moltbook, Agent Trustworthiness, and Prompt Attestation

https://twitter.com/iosifache/status/2017391589367419351
1•iosifache•26m ago•1 comments

Solving Shrinkwrap [for CSS]: New Experimental Technique [Without JavaScript]

https://kizu.dev/shrinkwrap-solution/
1•spiros•27m ago•0 comments

Bezos' Rocket Firm Blue Origin to Halt Space Tourism Flights

https://www.bloomberg.com/news/articles/2026-01-30/bezos-rocket-firm-blue-origin-to-halt-space-to...
2•pinewurst•29m ago•1 comments

Show HN: Foundry – Turns your repeated workflows into one-click commands

https://github.com/lekt9/openclaw-foundry
2•getfoundry•30m ago•0 comments

Venezuela to Shutter Torture Center, Promises Political Amnesty

https://www.bloomberg.com/news/articles/2026-01-30/venezuela-s-rodriguez-announces-amnesty-for-po...
2•pinewurst•31m ago•3 comments

Enshittification Ensures Streaming Prices Soar Faster Than Other Consumer Goods

https://www.techdirt.com/2026/01/30/enshittification-ensures-streaming-prices-soar-faster-than-an...
4•hn_acker•33m ago•4 comments

Show HN: Hosted OpenClaw with Secure Isolation

https://moltcloud.ai/blog/hosted-openclaw/
1•stubbi•35m ago•0 comments

Threads' margin is the Eurostack's opportunity

https://pluralistic.net/2026/01/30/zucksauce/
1•hn_acker•37m ago•0 comments

Context Management in Claude Code (Compaction)

https://decodeclaude.com/compaction-deep-dive/
1•moona3k•38m ago•0 comments

An interactive particle system driven by your hand movements

https://particle-sense.vercel.app/
1•nanxiaobei•39m ago•0 comments

Show HN: Tech 10 – a weekly trivia quiz for software engineers

https://www.techten.dev/
1•p0u4a•44m ago•0 comments

Erdos #1051 Forum

https://www.erdosproblems.com/forum/thread/1051
3•nmstoker•46m ago•1 comments

One-click cloud template for Clawdbot/Moltbot/OpenClaw, no Mac Mini needed

https://lightning.ai/lightning-ai/environments/openclaw
3•yewnork•49m ago•1 comments

Force step up authentication in web applications

https://damienbod.com/2026/01/26/force-step-up-authentication-in-web-applications/
1•mooreds•58m ago•0 comments

175K+ publicly-exposed Ollama AI instances discovered

https://www.techradar.com/pro/security/over-175-000-publicly-exposed-ollama-ai-servers-discovered...
12•heresie-dabord•59m ago•4 comments

Judge: DOJ's statements on slavery exhibit display 'dangerous' & 'horrifying'

https://apnews.com/article/slavery-exhibit-removed-philadelphia-trump-executive-order-cd55e4f2a0d...
5•petethomas•1h ago•1 comments