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?

Opsec in 2026: An Anatomy of Failure

https://ikerantxustegi.com/research/opsec-in-2026-an-anatomy-of-failure/
1•ikerantxustegi•23s ago•0 comments

AI Code Mirroring Monomorphic TypeScript into Zig

https://lolblob.substack.com/p/ai-code-mirroring-monomorphic-typescript
1•lerp-io•1m ago•0 comments

Design of Linkage Systems to Draw Specified Plane Curves(2017) [pdf]

https://bertini.nd.edu/wampler2017/McCarthyTalk.pdf
1•o4c•1m ago•0 comments

OpenDLSS: A Vulkan Reimplementation of Nvidia's DLSS 5 Neural Rendering Network

https://github.com/maanHimself/OpenDLSS-NR
1•sagacity•2m ago•0 comments

Two kinds of SQL query builders

https://mechanicalrabbit.github.io/FunSQL.jl/stable/two-kinds-of-sql-query-builders/#Two-Kinds-of...
1•fanf2•3m ago•0 comments

Ask HN: Has there been a "software crisis" since the 60s?

1•boxesnlines•5m ago•0 comments

Hookbin – a disposable webhook and request inspector

https://hookbin.sebastiaan-ba3.workers.dev
1•doormatcapital•14m ago•0 comments

Urbanloop – Green Transport – Smart Sustainable Mobility

https://urbanloop.fr/en/
1•ZeljkoS•15m ago•0 comments

Pentagon Influencer Called Liberal Women 'Pestilence' Who Will End Civilization

https://www.wired.com/story/a-pentagon-influencer-called-liberal-women-a-pestilence-who-will-end-...
2•rbanffy•21m ago•1 comments

A chiral aperiodic monotile with Fibonacci monodromy [pdf]

https://pingyou.com/papers/fibonacci-monotile.pdf
1•jjbowan•23m ago•0 comments

Show HN: HairColorChangeAI – AI hair color try-on in the browser

https://haircolorchangeai.com/
1•StephenDong7•23m ago•0 comments

Engineering calculators for electronics, geometry and code

https://www.pockeng.com/
1•levario•31m ago•0 comments

I Outsource My Biggest Decisions to a Chatbot – and None of the Small Ones

https://laurenleek.substack.com/p/why-i-outsource-my-biggest-decisions
1•temp7000•31m ago•1 comments

AAPR: Absolute-Address Partial Residency

https://zenodo.org/records/22190281
1•NegativeAbsence•31m ago•0 comments

What von der Leyen left out of her Congress of Europe pitch

https://www.ftm.eu/newsletters/what-von-der-leyen-left-out-of-her-congress-of-europe-pitch
2•robtherobber•32m ago•0 comments

Preparing your website or app for Black Friday

https://medium.com/@therealcomtom/preparing-your-website-or-app-for-black-friday-ee0b798d7bfc
1•comtom•36m ago•0 comments

Practical Secrets Extraction Against Black-Box LLMs

https://arxiv.org/abs/2609.36941
1•sbulaev•38m ago•0 comments

Software Engineering After Code

https://pooyam.dev/software-engineering-after-code
1•py4•38m ago•0 comments

How to Manage a Team of AI Agents at Month-End

https://adaptiveinc.com/blog/01a0d880/how-to-manage-a-team-of-ai-agents-at-month-end
1•fyying•39m ago•0 comments

I ran a 397B-parameter model on 20 GPUs with 16 GB each

https://diljitpr.net/blog-post-2026-09-30-running-397b-model-on-20-gpus-peer-to-peer.html
2•diljitr•40m ago•0 comments

The death of web development education

https://molily.de/web-dev-education/
1•roosgit•44m ago•0 comments

Ulua: Pure Rust Implementation of the Luau Language with JIT and WebAssembly

https://github.com/webc-site/ulua
1•rmw-link•46m ago•1 comments

Meaning Ops: Seven Verbs for Working on Meaning with a Language Model

https://utopai.substack.com/p/meaning-ops
1•cyberneticc•50m ago•1 comments

How to Future-Proof Your Career in the Age of AI

https://www.noemamag.com/why-a-liberal-arts-education-will-soon-be-more-valuable-than-ever/
2•plastic-enjoyer•50m ago•0 comments

Show HN: Built agent orchestration system, Director->{workers }

https://github.com/mastaan66/foreman
1•mastaansk•52m ago•0 comments

Show HN: I made Jev to talk

https://github.com/zie1ony/jev-talks
2•zie1ony•52m ago•0 comments

Show HN: Melete – an open-source alternative to OpenAI's Dots

https://github.com/ychampion/melete
1•yashasgunderia•54m ago•0 comments

Eleven v4 and Eleven v4 Turbo released

https://twitter.com/ElevenLabs/status/2104572127617994917
1•soltanov•54m ago•0 comments

Zero-Growth Stack, Real Gains: How Stack Allocation Can Save 10% CPU in Go

https://www.uber.com/in/en/blog/zero-growth-stack/
1•birdculture•55m ago•0 comments

How to Make Money from OpenAI DevDay 2026

https://aiextracash.com/tools/chatgpt/openai-devday-2026-money-opportunities/
1•RealLeon•57m ago•0 comments