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?

No one can force me to have a secure website [pdf]

https://tom7.org/httpv/httpv.pdf
1•susam•2m ago•0 comments

Beyond Maxxing: New Tech Slang for 2026

https://www.siliconsnark.com/beyond-maxxing-siliconsnark-creates-new-tech-slang-for-2026/
1•SaaSasaurus•2m ago•0 comments

A Model for Economic Freedom on Mars

https://arxiv.org/abs/2406.10380
1•AFF87•5m ago•0 comments

I Got Sick of Remembering Port Numbers

https://gregraiz.com/blog/local-vibe/
1•graiz•5m ago•0 comments

Using a 1978 terminal in 2026 (DEC VT-100)

https://nikhiljha.com/posts/vt100/
2•ninjha•6m ago•0 comments

The AI Product Era You're Building for Might Be Over – Arcturus Labs

http://arcturus-labs.com/blog/2026/03/22/the-ai-product-era-youre-building-for-might-already-be-o...
1•softwaredoug•7m ago•0 comments

Remembering Seth Nickell

https://lwn.net/Articles/1070213/
1•chmaynard•7m ago•0 comments

GPT 5.5: The System Card

https://thezvi.substack.com/p/gpt-55-the-system-card
1•paulpauper•9m ago•0 comments

GPT-5.5: Capabilities and Reactions

https://thezvi.substack.com/p/gpt-55-capabilities-and-reactions
1•paulpauper•9m ago•0 comments

US to issue passports featuring Trump's picture to commemorate America's 250th

https://www.cnn.com/2026/04/28/politics/us-trump-passport
2•rawgabbit•10m ago•0 comments

Utah Planning Commission delays decision on Kevin O'Leary-backed data center

https://www.datacenterdynamics.com/en/news/utah-planning-commission-delays-decision-on-kevin-olea...
2•pera•10m ago•0 comments

The Church Rock Uranium Mill Spill

https://en.wikipedia.org/wiki/Church_Rock_uranium_mill_spill
1•Sir_Twist•11m ago•0 comments

Pop-Up RSS

https://www.sourcefeed.app/
1•bjhess•11m ago•0 comments

The Robots Are Coming

https://steelforfuel.substack.com/p/the-robots-are-coming
2•simonebrunozzi•11m ago•0 comments

'Stole a charity': Elon Musk accuses Sam Altman of betrayal in courtroom

https://www.theguardian.com/technology/2026/apr/28/sam-altman-open-ai-elon-musk-trial
3•tzmlab•11m ago•0 comments

Why JSON Schema matters more than ever in the age of generative AI

https://thenewstack.io/json-schema-ai-reliability/
1•chhum•12m ago•0 comments

Open-weight 27B hits 38% on Terminal-Bench 2.0 (Opus 4.1 hit 38% in Aug 2025)

https://antigma.ai/blog/2026/04/24/offline-coding-models
2•ubermon•12m ago•1 comments

Trump admin to pay 2 more companies to walk away from US offshore wind leases

https://apnews.com/article/trump-offshore-wind-energy-climate-interior-02a1fa04b750809bbe035a7025...
4•ceejayoz•13m ago•0 comments

C, Just In Time!

https://dyne.org/cjit/
6•smartmic•14m ago•0 comments

Why Matterbeam

https://blog.matterbeam.com/why-matterbeam/
1•mikepk•14m ago•0 comments

Show HN: SlopIt – A dead-simple CMS for your AI agent

https://slopit.io/
1•asenna•14m ago•0 comments

DOOM running in ChatGPT and Claude

https://chrisnager.com/blog/doom-runs-in-chatgpt-and-claude/
13•chrisnager•15m ago•2 comments

Tfdrift – Open-source Terraform drift detection with severity classification

https://github.com/sudarshan8417/tfdrift
1•sudarshan8417•15m ago•0 comments

Show HN: A DIY, MITM Keyboard Sniffer Built Around an RP2040

https://nlessard.online/projects/2040listener/
2•nlessard•16m ago•0 comments

Learning to Orchestrate Agents in Natural Language with the Conductor

https://arxiv.org/abs/2512.04388
1•Anon84•18m ago•0 comments

Sparse AI: Better hardware could turn zeros into AI heroes

https://spectrum.ieee.org/sparse-ai
1•4lx87•19m ago•0 comments

Ex-FBI Director James Comey indicted for his '8647' seashell post on Instagram

https://www.cnbc.com/2026/04/28/james-comey-indicted-trump-seashell-8647.html
1•koolba•19m ago•0 comments

Polymarket breach – 300k records exposed

https://twitter.com/DarkWebInformer/status/2049163029430870034
1•wildrhythms•19m ago•0 comments

I automated L2 support tired of handling escalations

https://www.lumen.support/how-i-automated-l2-support
1•miguelaeh•21m ago•0 comments

GitHub Copilot silently inserts itself as a co-author

https://github.com/orgs/community/discussions/194075
3•saikatsg•21m ago•0 comments