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?

Show HN: A Mac switchboard for Claude Cowork skills

https://skillswitch.cc/
1•pardzzz•54s ago•0 comments

White House deletes web pages about energy conservation as heatwave slams US

https://www.theverge.com/policy/961449/white-house-mamdani-heatwave-deletion
1•amarcheschi•3m ago•0 comments

Show HN: Gubbi – Minimalist LLM Chatbot

https://github.com/prahladyeri/gubbi
1•pyeri•5m ago•0 comments

Our New American Kei Truck

https://www.youtube.com/watch?v=vJJa9zBDa6A
1•initramfs•6m ago•1 comments

Show HN: KiCad in the Browser

https://demo.pcbjam.com/
1•ViktorEE•6m ago•1 comments

Unofficial Starlink Global Gateways and Pops

https://www.google.com/maps/d/viewer?mid=1805q6rlePY4WZd8QMOaNe2BqAgFkYBY&hl=en
1•jenders•8m ago•0 comments

Show HN: Agent Torrent, a BitTorrent inspired mesh for idle coding agents

https://github.com/raghavan/agent-torrent
3•raghavankl•9m ago•0 comments

PrimeNG is no longer open source

https://primeui.dev/nextchapter
1•charlesabarnes•12m ago•0 comments

Cannabis Users Face Substantially Higher Risk of Heart Attack

https://www.acc.org/about-acc/press-releases/2025/03/17/15/35/cannabis-users-face-substantially-h...
2•RickJWagner•14m ago•1 comments

Show HN: TraceTree – Sandboxed behavioral analysis for NPM and PyPI packages

https://github.com/tejasprasad2008-afk/TraceTree
1•Tejas_dmg•15m ago•0 comments

Sycophantic AI decreases prosocial intentions and promotes dependence

https://www.science.org/doi/full/10.1126/science.aec8352
2•delichon•19m ago•0 comments

Introduction to Compilers and Language Design

https://dthain.github.io/books/compiler/
1•AlexeyBrin•19m ago•0 comments

Show HN: Ferroterm – Rust / WebAssembly Terminal Emulator and Library

3•sylwester•21m ago•0 comments

Programmers need to start meditating now

1•pythonRon•21m ago•1 comments

Accelerating the Quantum-Safe Timeline

https://www.microsoft.com/en-us/security/blog/2026/06/30/microsoft-advances-quantum-safe-security...
1•giuliomagnifico•27m ago•0 comments

T3MP3ST autonomous red team platform multi-agent offensive-security meta-harness

https://github.com/elder-plinius/T3MP3ST
1•882542F3884314B•27m ago•0 comments

EU Council forces Chat Control via fast-track

https://www.heise.de/en/news/Chat-Control-1-0-EU-Council-forces-messenger-scans-via-fast-track-11...
2•stavros•29m ago•1 comments

Prediction Markets Let You Bet on Whether a Wildfire Will Burn Down Your Town

https://www.wired.com/story/prediction-markets-let-you-bet-wildfire/
2•beardyw•29m ago•2 comments

Peregrine Falcon: The Fastest Animal on Earth at 390 km/h

https://strangeanimals.info/birds/raptors/peregrine-falcon-fastest-animal
1•thunderbong•31m ago•0 comments

Ask HN: Is HN crowd a left-leaning?

4•eimrine•38m ago•0 comments

UK plans to give established media more visibility on YouTube

https://www.theguardian.com/media/2026/jun/22/uk-youtube-tiktok-established-media-prominence-misi...
1•j-bos•40m ago•0 comments

Latent Collaboration in Multi-Agent Systems

https://github.com/Gen-Verse/LatentMAS
1•_pdp_•42m ago•0 comments

DeltaChat 2.48: zero metadata, group description, native audio/video call & more

https://delta.chat/en/2026-03-31-zero
1•xeonmc•42m ago•0 comments

Spain's cadastre API is SOAP from 2003, so I built a JSON wrapper (+MCP)

https://prediohq.com/
2•guillermofc•43m ago•0 comments

The Revenge of the Philosophy Majors

https://www.nytimes.com/2026/07/05/business/philosophy-majors-ai-jobs.html
3•Kaibeezy•43m ago•0 comments

What We Can't Measure About AI Yet

https://aeon.co/essays/what-we-cant-measure-about-ai-yet
2•worldvoyageur•45m ago•1 comments

Wikipedia Is Battling for the Soul of the Internet

https://www.nytimes.com/2026/07/05/business/media/wikipedia-ai-elon-musk.html
3•cainxinth•51m ago•0 comments

Durian Montong

https://blog.cloudflare.com/welcome-to-connectivity-cloud/
1•basri•53m ago•0 comments

Was Homer's Ithaca an Island?

https://antigonejournal.com/2026/07/in-search-of-ithaca/
1•Hardy_Boy•53m ago•0 comments

I built a Figma for traders and investors – all in on tab

https://fynca.io/
1•adiabramov•54m ago•0 comments