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

United flight strikes truck on New Jersey Turnpike before landing at Newark

https://www.cbsnews.com/newyork/news/united-airlines-flight-hits-light-pole-at-newark-liberty-air...
1•berkeleyjunk•54s ago•0 comments

Story of Two GPUs: Characterizing the Resilience of Hopper H100 and Ampere A100

https://arxiv.org/abs/2503.11901
1•rbanffy•10m ago•0 comments

The bottleneck was never the code

https://www.thetypicalset.com/blog/thoughts-on-coding-agents
1•Anon84•13m ago•0 comments

Ask HN: What's everyone's stock picking flow in 2026? (successful or not)

1•fiiico•13m ago•0 comments

Inverse Chladni Energy Landscape Design

https://github.com/PaulBellette/chladni_inverse_design
1•salty_biscuits•16m ago•1 comments

SmartTune CLI – ArduPilot log analysis(MIT open source)

https://github.com/raylanlin/smarttune-cli
2•RaylanLIN•17m ago•0 comments

Jensen says Nvidia now has '0%' share in China, US export policy 'has backfired'

https://www.tomshardware.com/tech-industry/artificial-intelligence/jensen-says-nvidia-now-has-zer...
2•SanjayMehta•18m ago•0 comments

The growth engineering one pager

https://jordanlord.co.uk/blog/growth-engineering/
1•nervous_north•18m ago•0 comments

Rackspace offers GPUs as a cloud service with spot instance pricing

https://siliconangle.com/2024/11/04/rackspace-offers-gpus-cloud-service-spot-instance-pricing/
1•aleroawani•18m ago•0 comments

Agent Control Room – Auth0 for AI Agents

https://topainexus.com
1•danielmichnea•22m ago•0 comments

Show HN: Weather app to show actual performance of weather models

https://apps.apple.com/nl/app/verisky/id6759251875
1•nickoteeno•25m ago•1 comments

Resend overtook SendGrid+Mailgun+Postmark+Mailjet combined on indie launches

https://stackscope.dev/blog/state-of-indie-launches-april-2026
1•stackscope•26m ago•0 comments

Amsterdam bans public adverts for meat and fossil fuels

https://www.bbc.com/news/articles/c9wejdekpwyo
13•mr_toad•29m ago•1 comments

SoftBank plans to list new AI and robotics company in the US

https://www.ft.com/content/55c7d99c-7e68-453c-b784-33d6b9838e16
1•JumpCrisscross•30m ago•0 comments

Circuitiny: AI-assisted circuit design tool for hobbyists

https://github.com/mfranzon/circuitiny
1•mfranzon•31m ago•0 comments

Redis new Array type PR and request for feedbacks

https://github.com/redis/redis/pull/15162
1•antirez•31m ago•0 comments

Heat pump sales jump as consumers recoil at high fossil fuel prices

https://www.ft.com/content/571e9cc4-1b32-49ef-bc82-e550e9404d8f
1•JumpCrisscross•31m ago•0 comments

The A.I. Industry Is Booming. When Will It Make Money?

https://www.newyorker.com/news/the-financial-page/the-ai-industry-is-booming-when-will-it-actuall...
1•geox•32m ago•0 comments

Why the Ideal Magnet Remains Out of Reach

https://spectrum.ieee.org/rare-earth-free-magnets
1•pseudolus•39m ago•0 comments

Iarpa Trojans in Artificial Intelligence

https://arxiv.org/abs/2602.07152
1•hlynurd•39m ago•0 comments

Advice I WISH I'D BEEN Told (1999)

http://web.archive.org/web/20090502012411/http://wwwstage.valpo.edu/english/vpr/mcdonaldessay.html
3•downbad_•40m ago•1 comments

Ask HN: Feedback on my privacy-focused code editor?

1•aminekhd•41m ago•0 comments

Family data reveal two genetic paths to childhood depression and anxiety

https://medicalxpress.com/news/2026-04-family-reveal-genetic-paths-childhood.html
1•pseudolus•43m ago•0 comments

More than double the gas stuck in Hormuz is wasted each year, IEA says

https://www.ft.com/content/fdc6aa8a-538a-4f1d-b1b9-a0ce0cd2a5ac
2•JumpCrisscross•44m ago•0 comments

Kant: Was Ist Aufklärung?

https://www.hs-augsburg.de/~harsch/germanica/Chronologie/18Jh/Kant/kan_aufk.html
2•doener•46m ago•1 comments

Show HN: Valk Guard– Catches dangerous SQL hidden inside your ORM,no DB required

https://github.com/ValkDB/valk-guard
2•valkdb•48m ago•0 comments

Why do so many people use AI to cheat at fun?

https://www.thecut.com/article/would-you-use-chatgpt-to-cheat-at-hobbies.html
1•the-mitr•48m ago•0 comments

Reviving the internet radio in my 12-year-old Denon

https://victorantos.com/posts/i-bought-a-denon-for-my-wedding-then-i-vibe-coded-its-radio-back/
3•victorbuilds•49m ago•0 comments

GitHub (But It's a EU Project)

https://pinolallo.com/html/eurohub-demo.html
4•HipstaJules•51m ago•0 comments

Shoppers falsely identified by facial recognition struggle to clear their names

https://www.theguardian.com/technology/2026/may/03/guilty-until-proven-innocent-shoppers-falsely-...
1•rwmj•52m ago•0 comments