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?

I Hacked Harley's $100M Motorcycle [video]

https://www.youtube.com/watch?v=Z4Ty0oqA_Bk
1•jackdoe•17s ago•0 comments

US judge rejects CFTC emergency bid to block New York from policing Kalshi

https://www.reuters.com/legal/government/us-judge-rejects-cftc-emergency-bid-block-new-york-polic...
1•ra0x3•40s ago•0 comments

One-of-a-kind biological computer runs on living bacteria

https://newatlas.com/computers/biological-computer-living-bacteria/
1•sargstuff•1m ago•1 comments

JEDEC Previews DDR6 Memory Standard: 2.35x More Bandwidth, 44% Narrower DIMMs

https://www.servethehome.com/jedec-previews-ddr6-memory-standard-2-35x-more-bandwidth-44-narrower...
1•rbanffy•1m ago•0 comments

Show HN: TheGitAI/CLI Agent with Computer Control Through on Linux (Wayland+X11)

https://thegit.ai/tour
1•waximabbax•1m ago•0 comments

Show HN: Straum – A Postgres sidecar that keeps your dashboard aggregates live

https://github.com/janbjorge/straum
1•jeeybee•4m ago•0 comments

The New World (2025)

https://colossus.com/article/joshua-kushner-thrive-new-world/
1•simonebrunozzi•4m ago•0 comments

Domain Industry Relationship Maps: Registrars, Registries and Auctions

https://www.dnaccess.com/domain-industry-maps/
1•bhartzer•4m ago•0 comments

Show HN: I Wrote FlightTrack Twice

https://apps.apple.com/us/app/flighttrack-flight-tracker/id6788552553
1•bkazez•5m ago•0 comments

Free AI app that improves framerate of videos

https://flowframes.app/
1•illidan1000•6m ago•0 comments

OpenAgentCore: The OpenAI Agents API, open source and self-hosted

https://github.com/MiniMax-AI/OpenAgentCore
1•gfortaine•6m ago•0 comments

WordPress Forever?

https://www.gordonmclean.co.uk/2026/11/21/wordpress-forever/
1•speckx•8m ago•0 comments

GitHub Actions accepts invalid YAML

https://yossarian.net/til/post/github-actions-accepts-invalid-yaml/
1•woodruffw•9m ago•0 comments

PulpSuite

https://pulpSuite.com
1•loostik•10m ago•0 comments

The MIT Processor Database brings decades of chip history into the AI era

https://cap.csail.mit.edu/mit-processor-database-brings-decades-chip-history-ai-era
2•gnabgib•11m ago•0 comments

Will the first approved psychedelic become a blockbuster?

https://www.pharmavoice.com/news/race-first-psilocybin-blockbuster-compass-usona/875270/
1•randycupertino•12m ago•0 comments

AirMark – A Flight Tracking App

https://markair.eu/
1•lastkmsg•13m ago•0 comments

Riemann in Simple Terms [video]

https://www.youtube.com/watch?v=zlm1aajH6gY
1•julcol•15m ago•1 comments

The Making of Alyfe

https://soundyngc.com/public_demos/ALYFE/making_of/
1•z303•16m ago•0 comments

GLP-1 drugs could have a surprisingly large environmental payoff

https://theconversation.com/weight-loss-drugs-could-free-up-an-area-of-farmland-larger-than-italy...
4•rbanffy•18m ago•0 comments

TanStack Start: A full-stack framework for React and Solid

https://tanstack.com/start/latest
1•doener•21m ago•0 comments

Strict: Run CI on Spare Macs

https://strict.ai/
1•jjeremycai•21m ago•1 comments

Shannon's Source Coding Theorem

https://en.wikipedia.org/wiki/Shannon%27s_source_coding_theorem
2•armcat•23m ago•0 comments

Childhood infectious disease and premature death from cancer

https://link.springer.com/article/10.1007/s10654-013-9775-1
2•bilsbie•24m ago•0 comments

A Beginner's Guide to Local AI with Inkling, Qwen, and Unsloth

https://www.gpupartner.com/blog/beginners-guide-local-ai-inkling-qwen-unsloth
2•Retell15•24m ago•0 comments

Show HN: UnfollowX Pro – a free Chrome extension to mass unfollow on Twitter (X)

https://www.unfollowx.com
1•shahriar_bmb•25m ago•0 comments

Show HN: I built a tool to animate your code

https://trycodeclip.com/
2•koochi10•26m ago•0 comments

Show HN: You Are Hilbert

https://you-are-hilbert.koenvangilst.nl/
2•vnglst•26m ago•0 comments

A Short History of Enclosure in Britain

https://www.thelandmagazine.org.uk/articles/short-history-enclosure-britain
1•Bluestein•31m ago•0 comments

Show HN: Stock News API – free headlines with sentiment for 10k US stocks

https://www.quotelinks.com/api/stock-news/
1•chartwidgets•32m ago•0 comments