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

Kap

https://kapdemo.dhsdevelopments.com/
1•tosh•54s ago•0 comments

Show HN: Shifu – A pure POSIX shell framework to create powerful CLIs

https://github.com/Ultramann/shifu
1•ultramann•1m ago•0 comments

Fast sandboxed code execution with pre-warmed gVisor pools

https://github.com/shayonj/gvisord
1•shayonj•1m ago•0 comments

Economics Papers to Inspire Wonder

https://docs.google.com/document/d/1ZW8f0eFEZhwmKeRu1KqxLFMaouajmEGfvZF0Us_G4Iw/edit?pli=1&tab=t.0
1•sebg•1m ago•0 comments

ZimaOS: A Simplified, Focused and Open NAS OS Supports All x86-64 Hardware

https://www.zimaspace.com/zimaos
1•thunderbong•1m ago•0 comments

You probably don't need to lift state

https://allthingssmitty.com/2026/03/30/you-probably-dont-need-to-lift-that-state/
2•AllThingsSmitty•2m ago•0 comments

Tryptophan-rich allosteric communication network helps activate a major receptor

https://phys.org/news/2026-03-tryptophan-rich-allosteric-communication-network.html
2•PaulHoule•2m ago•0 comments

Operational Benefits of Databases Built on Object Storage

https://blog.colinbreck.com/operational-benefits-of-databases-built-on-object-storage/
2•sebg•4m ago•0 comments

Deer-Flow Installing Line

https://github.com/bytedance/deer-flow
2•cnrd•4m ago•1 comments

Structuring a Team Around AI-Assisted Development

https://jasonrobert.dev/blog/2026-03-22-structuring-an-ai-assisted-development-team/
3•cebert•4m ago•0 comments

Vibe Code vs. Trad Code

https://www.dolthub.com/blog/2026-03-26-vibe-code-vs-trad-code/
2•lukev•6m ago•0 comments

Mistral secures $830M in debt financing to fund AI data center

https://www.cnbc.com/2026/03/30/mistral-ai-paris-data-center-cluster-debt-financing.html
2•gslin•6m ago•0 comments

Show HN: A CardDAV server for LDAP

https://github.com/isubsoft/ldap-carddav
2•spnandi•8m ago•0 comments

The ARIANE 5 Software Failure (1997)

https://dl.acm.org/doi/pdf/10.1145/251880.251992
2•scoresmoke•9m ago•0 comments

Do AI-enabled companies need fewer people?

https://seldo.com/posts/do-ai-enabled-companies-need-fewer-people/
2•mooreds•9m ago•0 comments

Maybe you should have bought an electric car

https://www.noahpinion.blog/p/maybe-you-should-have-bought-an-electric
3•mooreds•10m ago•0 comments

Craig Newmark: Billionaires, Stop Whining About the Giving Pledge

https://www.nytimes.com/2026/03/30/opinion/giving-pledge-philanthropy.html
3•mooreds•10m ago•0 comments

Grade Caps Fail the Game Theory Exam

https://www.thecrimson.com/article/2026/3/27/kominers-harvard-grade-cap/
2•mhb•11m ago•0 comments

Better Datamash Build Story with Meson

https://gms.tf/datmash-meson.html
2•ingve•11m ago•0 comments

Databricks allegedly compromised in a TeamPCP supply chain attack

https://twitter.com/IntCyberDigest/status/2038552600375648701
3•matthieu_bl•13m ago•0 comments

24 Hard Rules for Writing Correct Async C++

https://ranvier.systems/2026/03/29/24-hard-rules-for-writing-correct-async-cpp.html
2•mindsaspire•14m ago•0 comments

You shouldn't write library style code (probably)

https://wilsoniumite.com/2025/05/17/you-should-not-write-library-code-probably/
1•Wilsoniumite•14m ago•0 comments

Don't Let AI Write for You

https://alexhwoods.com/dont-let-ai-write-for-you/
1•karimf•14m ago•0 comments

Pushing Simulation to the Limit to Find Order in Chaos [video]

https://www.youtube.com/watch?v=8jVogdTJESw
1•CGMthrowaway•16m ago•0 comments

Show HN: SycoFact 4B: Open model detecting sycophancy and delusion confirmation

https://huggingface.co/iwalton3/sycofact
1•iwalton3•18m ago•0 comments

Ask HN: Is it actually possible to run multiple coding sessions in parallel?

3•sukit•18m ago•1 comments

Show HN: ListenDock – turn blogs and PDFs into audio

https://listendock.com/blogs
1•janpmz•19m ago•0 comments

Indian University Directory

https://chimera.university/ranking
1•celestiallylvd1•20m ago•1 comments

How to build a pipeline in Canada's frozen, shifting North

https://thenarwhal.ca/pipeline-north-challenges/
1•bookofjoe•21m ago•0 comments

It's Time to Build Assets?

https://www.molsonhart.com/blog/its-time-to-build-assets
1•monomial•22m ago•0 comments