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?

Amiga Unix: Linux-based cross-compiler setup for AMIX

https://github.com/isoriano1968/gcc-cross-amix
1•doener•1m ago•0 comments

Neumann probe game (playable with browser or or API)

https://neumann-probe.net/
1•Gnieark•2m ago•1 comments

Roast my startup – Google but returns TikTok-style videos

https://www.bluhe.ai/
1•dhavd•2m ago•0 comments

RewindOS – Searchable screen history for Linux local

https://github.com/jaypopat/rewindos
1•jp011•3m ago•1 comments

Unicorn – The Ultimate CPU Emulator

https://www.unicorn-engine.org/
1•tosh•5m ago•0 comments

OmniPreview – code preview, ZIP/folder browser, 29 file formats in Mac QuickLook

https://github.com/Invernomut0/QuickLookWithSteroids
1•invernomuto0•6m ago•0 comments

Electrifying the Cow Path

https://sebas.fika.bar/electrifying-the-cow-path-01KSJS9QM201WECVBBV2HKAV6M
1•mooreds•7m ago•0 comments

SpaceX IPO Stress Tests Crypto's Bid to Reinvent Stocks

https://www.bloomberg.com/news/articles/2026-06-15/spacex-ipo-stress-tests-crypto-s-bid-to-reinve...
1•monkeydust•8m ago•0 comments

Javier Milei: Argentina invites AI to free itself

https://www.ft.com/content/f93022fe-43f7-437d-abd8-06c457c0a43c
1•mooreds•8m ago•1 comments

Covid vaccination cut risk of adverse heart events, large study finds

https://www.statnews.com/2026/06/15/covid-vaccination-cardiovascular-protection-jama-study/
2•thinkcontext•9m ago•0 comments

Learn Agent Substrate

https://learn.agentsubstrate.dev/
1•mooreds•9m ago•0 comments

SpaceX to buy Cursor AI parent Anysphere for $60B

https://www.cnbc.com/2026/06/16/-spacex-to-buy-cursor-ai-parent-anysphere-for-60-billion.html
2•furkansahin•11m ago•0 comments

SpaceX Cements $60 Billion Deal to Take Over AI Startup Cursor

https://www.bloomberg.com/news/articles/2026-06-16/spacex-cements-60-billion-deal-to-take-over-ai...
1•flippyhead•12m ago•0 comments

DuckDB Internals: Why Is DuckDB Fast? (Part 1)

https://www.greybeam.ai/blog/duckdb-internals-part-1
1•marklit•13m ago•0 comments

Tlbic: A Time-Limited Basic Income System Designed with AI, v6.1

https://drive.google.com/file/d/1NJA8clb_wkotSnUkBPGZMw8Dywa5caiF/view?usp=drive_link
1•michikawa59•14m ago•0 comments

A Company That Was Nobody: The Case for AI-Agent Corporations

https://sebas.fika.bar/a-company-that-was-nobody-01KTRGPQ9G7T66N98PMY0SN8BT
1•smtx•14m ago•0 comments

Want to get a data center online quickly? Give it some flex

https://www.technologyreview.com/2026/06/16/1138591/data-center-online-quickly-electric-grid-flex/
1•joozio•16m ago•0 comments

The Implementation Trilemma: Substance-Independence Is Incomplete

https://philpapers.org/rec/GIOTIT
1•cgio•21m ago•0 comments

Why is it important for a matrix to be square? (2018)

https://math.stackexchange.com/questions/2811951/why-is-it-important-for-a-matrix-to-be-square
1•downbad_•22m ago•0 comments

Evaluating different LLMs for their security research capabilities

https://zeroquarry.com/research/models-capabilities/
1•eskibars•23m ago•0 comments

Boston University grad students demonstrate flaw in MBTA tap-to-pay system

https://www.nbcboston.com/news/local/it-was-shocking-bu-grad-students-say-theyve-found-a-flaw-in-...
1•ripe•27m ago•0 comments

Show HN: Write SaaS apps where users control where their data is stored

https://linkedrecords.com/
3•WolfOliver•27m ago•0 comments

About ASCII art and Jgs font (2023)

https://velvetyne.fr/news/about-ascii-art-and-jgs-font/
1•Luc•29m ago•0 comments

Stepyard - local automations in YAML, extendable with Python, no server needed.

https://github.com/rorlikowski/stepyard
1•rorlikowski•31m ago•0 comments

Celebrating seven years of the Fairphone 3

https://www.fairphone.com/stories/celebrating-seven-years-of-the-fairphone-3
2•ravenical•33m ago•0 comments

Finplan.me – offline expense tracker for Android no accounts or cloud

https://play.google.com/store/apps/details?id=com.finplan.me.finplan.me&hl=en_US
1•ivarlev•35m ago•0 comments

SpaceX to buy Cursor AI coding agent operator Anysphere for $60B

https://www.reuters.com/legal/transactional/spacex-buy-anysphere-60-billion-2026-06-16/
16•itsmarcelg•36m ago•3 comments

Do you tend to follow the rules that suppliers made?

1•carnoxen•36m ago•0 comments

Starlink ends free dish perks ahead of new Standard and Mini kits launch

https://www.notebookcheck.net/Starlink-ends-free-dish-perks-ahead-of-new-Standard-and-Mini-kits-l...
1•ashitlerferad•39m ago•0 comments

Revisiting the Inmos Transputer – Also in the News

https://www.rs-online.com/designspark/revisiting-the-inmos-transputer
2•rbanffy•40m ago•0 comments