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?

Everything you say CAN and WILL be used against you

https://idiallo.com/blog/the-right-to-remain-silent
2•garo-pro•1m ago•0 comments

AI Co-Founder for Solo Builders

https://taskachu.com
1•ndha•2m ago•0 comments

Baseten raised a $1.5B Series F and achieved a $13B valuation

https://www.baseten.co/blog/announcing-our-series-f/
2•kodablah•2m ago•0 comments

AI law firm wins UK court case for first time

https://www.ft.com/content/b4f8f589-6771-4df5-ac4d-cb15d94991fb
2•mmarian•3m ago•1 comments

Linear outage

https://linearstatus.com
1•alihashemi7•4m ago•0 comments

WhatsApp to be led by Indian startup founder as Will Cathcart steps back

https://www.bbc.com/news/articles/c8e2195k5j2o
2•LordAtlas•4m ago•0 comments

Surplus, an Incubator for Public Good

https://surplus.dev/
2•akrolsmir•4m ago•1 comments

The first ticking 'nuclear clocks' are here – what can they do?

https://www.nature.com/articles/d41586-026-01909-7
1•Brajeshwar•5m ago•0 comments

Enabling Claude Code to run code when its sandbox fails (windows only)

1•algoth1•6m ago•0 comments

Built social profiles for founders to make launches more personal

https://www.founder.best
3•jacksonnick•7m ago•0 comments

State of the Art of Platform Engineering • Abby Bangser and Charles Humble [video]

https://www.youtube.com/watch?v=Xsd02ebVv4w&list=PLEx5khR4g7PLg2vxafJTTGzeBbmzjsIz6
2•chhum•9m ago•0 comments

Reevy – Automate Amazon's "Request a Review" Button via SP-API (£9.99/Mo)

https://reevy.app/
2•bobonajaf•11m ago•0 comments

I Tracked LLM Pricing for 8 Weeks. Here's What the Data Shows

https://tokenprices.io/blog/llm-pricing-8-weeks
2•emonterrubio•11m ago•0 comments

I built an AI wearable demo that sees what I'm looking at and answers out loud

https://www.loom.com/share/b1d4dea1276f4e6c921f0e4e8bff8544
2•ZatorcZ•14m ago•1 comments

Show HN: Frontier AI for Motion Design

https://motion.so
6•adishj•15m ago•1 comments

Show HN: PreFlight – A local AST scanner to catch AI architectural drift

https://github.com/av29nassh-sketch/PreFlight
3•Avenassh•17m ago•0 comments

Apparently I'm not a woman because I use Linux

https://danielle.bearblog.dev/apparently-im-not-a-woman-because-i-use-linux/
4•twapi•18m ago•0 comments

Corporate Bullshit Receptivity Scale: Development, Validation, and Outcomes

https://www.sciencedirect.com/science/article/abs/pii/S0191886926000620
3•HardlyCognizant•18m ago•0 comments

In memory of the man who put red and green squiggles under words

https://devblogs.microsoft.com/oldnewthing/20260622-00/?p=112451
1•tyoma•19m ago•0 comments

The prices on Temu are already going up for EU customers prior July 1st

https://old.reddit.com/r/TemuThings/comments/1ucg6qu/the_prices_on_temu_are_going_up_for_eu_custo...
3•Markoff•19m ago•1 comments

Tata Electronics cyber breach claiming to expose Apple, Tesla trade secrets

https://www.reuters.com/business/media-telecom/indias-tata-electronics-hit-by-cyber-breach-claimi...
1•TechTechTech•19m ago•0 comments

Shirika-RPC – Typed RPC over SharedArrayBuffer/Atomics for Workers

https://github.com/leiko1337/Shirika-RPC
1•leiko1337•19m ago•0 comments

Show HN: GitPT – AI commit messages with Apple's on-device Foundation Models

https://github.com/bartaxyz/GitPT
2•bartaxyz•23m ago•0 comments

Configuration is a liability, just like code

https://utcc.utoronto.ca/~cks/space/blog/sysadmin/ConfigurationIsALiability
3•erikschoster•23m ago•0 comments

Iran's Forever Leverage

https://www.forever-wars.com/irans-forever-leverage/
4•speckx•24m ago•0 comments

Dwarf Fortress – 20 years of ASCII with graphics [video]

https://www.youtube.com/watch?v=Y0bcXw8NpEI
3•coolwulf•24m ago•0 comments

SpaceX signs computing power deal with AI startup Reflection worth up $6.3B

https://www.cnbc.com/2026/06/22/spacex-ai-colossus-data-center-reflection.html
9•ryzvonusef•24m ago•1 comments

Show HN: Build and Host AI apps on your own servers

https://agentry.run
3•winash83•25m ago•0 comments

Stad Ship Tunnel

https://www.snohetta.com/projects/stad-ship-tunnel
2•Tomte•25m ago•1 comments

Taking Stock of the Seed Stage

https://whoisnnamdi.com/taking-stock-of-the-seed-stage/
1•linolevan•26m ago•0 comments