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?

Open source 160 sound visualization experiments

https://www.kagan.in/iwrzwr/visual-archive/
1•kaganin•21s ago•0 comments

My static site was serving my internal docs

https://tminuslabs.space/serving-secrets
1•tminuslabs•2m ago•0 comments

Show HN: Trigora – durable execution without history replay

https://github.com/trigora-dev/trigora
1•hypervs•2m ago•0 comments

Show HN: Bigwords.page – Turn any screen into a sign. The URL is the app

https://bigwords.page/
1•SpeakingOfBrad•2m ago•1 comments

Show HN: Luke – Voice planning for coding agents

https://tryluke.dev/
2•cpan22•2m ago•0 comments

AsyncAPI Initiative

https://www.asyncapi.com/en
1•saikatsg•3m ago•0 comments

Nokia-style Android launcher – Simple Dumbphone

https://nokiaretrophone.mr-ahhk1412.chatgpt.site/
1•ahhk•3m ago•0 comments

Show HN: Srl – Angular-style web components with no build step

https://github.com/BernardoGiordano/srl
1•berngiordano•4m ago•0 comments

Redundancy Is the Engine of Progress

https://world.hey.com/dhh/redundancy-is-the-engine-of-progress-76499402
1•gpi•4m ago•0 comments

Boredpolymath/Truth-Beacon

https://github.com/boredpolymath/truth-beacon
1•boredpolymath•4m ago•0 comments

Morning Coffee Simulator

https://coffee.9000ish.uk/
2•gregsadetsky•6m ago•0 comments

Thank You Indonesia for the Clean Air

https://thankyouindoforthecleanair.web.app/
1•water-drummer•7m ago•0 comments

Show HN: The Last SaaS – A headless SaaS for agents and assistants

https://thelastsaas.com/
2•mkly•7m ago•0 comments

Training a small model to run a house

https://www.neelabhbuilds.com/writing/training-a-small-model-to-run-a-house
1•peaknk•7m ago•1 comments

Relay – A self-hosted alternative to AWS Lambda and EventBridge

https://github.com/sergiors/relay
2•sergiors•8m ago•1 comments

Bitcoin Spaces

https://bitsaga.be/insights/bitcoin-spaces
1•ca98am79•9m ago•0 comments

Configurable physical test lines for robot evaluation

https://www.datacompany.dev
1•jbuchananr•9m ago•0 comments

A search ecosystem built for AI agents

https://naget.com
1•csamarinas•10m ago•0 comments

Friday – A voice-activated personal AI companion built with Flutter

https://github.com/dj2313/jarvis_assistant
1•ddhruv2424•12m ago•0 comments

The Centre for Cryptographic Trust Infrastructure

https://martin.kleppmann.com/2026/10/07/centre-for-cryptographic-trust-infrastructure.html
1•mfrw•12m ago•0 comments

Show HN: Searchable AI agents built with a JSONC DSL

https://pypi.org/project/search2o/
1•ramvenkat11•13m ago•0 comments

'A Leter to a Hindu' by Leo Tolstoy, intro by Gandhi who was greatly influenced

https://www.gutenberg.org/files/7176/7176-h/7176-h.htm
1•redwood•14m ago•0 comments

SF could have dense, fine-grained, family-friendly Neighborhood, Not Megaproject

https://urbancourtyard.substack.com/p/san-francisco-could-have-a-dense
2•idbnstra•14m ago•0 comments

Canada launches national council to advise on artificial intelligence

https://nationalpost.com/news/canada/mark-carney-artificial-intelligence-council
1•rbanffy•17m ago•0 comments

AI firm HUMXN offers free plumbing and HVAC service in Minnesota to train robots

https://humxn.io/humxn-launches-free-home-service-program
11•brunomarsjams•18m ago•0 comments

Show HN: In-browser STL checker for holes, non-manifold edges and bed fit

https://thespoollist.com/tools/stl-checker
1•TheSpoolList•18m ago•0 comments

AI could be good for open source

https://nabraj.com/blog/ai-good-for-opensource
1•coffeecoders•18m ago•0 comments

The EU's High Tech E-Waste Recovery Push

https://spectrum.ieee.org/e-waste-european-union-circuit4eu
1•rbanffy•19m ago•0 comments

AI and the Speed of Idea Execution

https://norsewanderer.com/
1•mheilemann•19m ago•1 comments

The Oracle AI Data Center Train Wreck

https://subseacables.blogspot.com/2026/10/the-oracle-ai-data-center-train-wreck.html
2•speckx•20m ago•0 comments