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: The Saga Theorem: Architecture as Algebraic Geometry

https://blog.iroha1203.dev/the-saga-theorem
1•iroha1203•2m ago•0 comments

Framesmith 1.8 – click an element to give an AI agent design feedback

https://github.com/vicmaster/framesmith
1•vicvelazquez•3m ago•0 comments

The Linux Foundation Uses DNS to Give AI Agents a Trusted Identity

https://www.linuxinsider.com/story/the-linux-foundation-uses-dns-to-give-ai-agents-a-trusted-iden...
1•losgehts•4m ago•0 comments

California bans 'sell by' food labels to cut food waste

https://apnews.com/article/california-sell-by-food-labels-ban-bf426a5c0146cc9435d371c072e6a9d3
1•ChrisArchitect•4m ago•1 comments

Tech and Finance Sectors Losing 28,000 Jobs Monthly

https://www.bloomberg.com/news/articles/2026-07-01/tech-and-finance-sectors-losing-28-000-jobs-mo...
1•1vuio0pswjnm7•6m ago•0 comments

Why I Love Coding (2012)

https://henrikwarne.com/2012/06/02/why-i-love-coding/
1•downbad_•9m ago•0 comments

Burned out creating public software

https://mkagenius.substack.com/p/burned-out-creating-public-software
2•mkagenius•9m ago•0 comments

Wireless LAN SD

https://www.sdcard.org/developers/sd-standard-overview/sdio-isdio/wireless-lan-sd/
1•sharpshadow•9m ago•0 comments

FBI Director Kash Patel Amends Disclosure to Add MicroStrategy Stock Purchase

https://www.yahoo.com/news/politics/articles/fbi-director-kash-patel-amends-075544759.html
2•petethomas•10m ago•0 comments

Great Salt Lake Tracker – Grow the Flow

https://growtheflowutah.org/laketracker/
2•cfowles•11m ago•0 comments

The end-to-end cost-performance of real-time analytics: Snowflake vs. ClickHouse

https://clickhouse.com/blog/real-time-analytics-cost-performance-snowflake-vs-clickhouse
1•karlmush•12m ago•0 comments

OpenCode MCP Integration (2026 Guide)

https://www.arcade.dev/blog/opencode-mcp-integration/
1•manveerc•12m ago•0 comments

Ask HN: What books did you enjoy reading recently?

2•JeanMeche•14m ago•1 comments

Show HN: Bramble – Local-first password manager

https://github.com/flythenimbus/bramble
1•MegagramEnjoyer•15m ago•0 comments

Microsoft commits $2.5B and 6k employees to new AI implementation unit

https://www.cnbc.com/2026/07/02/microsoft-commits-2point5-billion-6000-employees-ai-implementatio...
3•cebert•15m ago•0 comments

Show HN: Piggy – lazy senior dev mode for AI agents (80–94% less code)

https://github.com/adamyasingh-12/Piggy-
1•piggydev•16m ago•0 comments

EFF letter to FTC on X consent order (2 July 2026) [pdf]

https://cdn.arstechnica.net/wp-content/uploads/2026/07/EFF-letter-to-FTC-on-X-consent-order-7-2-2...
1•Terretta•17m ago•0 comments

Gas giants use AI to raise prices, lawsuit says, another algorithmic hit to COL

https://www.latimes.com/california/story/2026-07-01/lawsuit-over-gas-prices-tests-clarification-t...
1•1vuio0pswjnm7•18m ago•0 comments

Show HN: Open-sourcing my personal market research

https://research.oguzbilgic.com
2•obilgic•19m ago•0 comments

Google hit with $2B antitrust judgment for skewing shopping searches

https://www.latimes.com/business/story/2026-07-01/google-hit-with-2-billion-antitrust-judgment-fo...
3•1vuio0pswjnm7•20m ago•0 comments

Show HN: A provider-agnostic agent loop built on ports and adapters

https://openagentloops.featherless.ai/
2•hopefulbutwary•22m ago•0 comments

No, There Wasn't An Advanced Civilization 12,000 Years Ago (2017)

https://www.scientificamerican.com/article/no-there-wasnt-an-advanced-civilization-12-000-years-ago/
2•optimalsolver•23m ago•0 comments

Champsfi – Real-time verifier agents for crowdsourced sports intelligence

https://champsfi.com/coming-soon.html
1•snhl•24m ago•1 comments

A New Catalog of Stellar Rotation Periods for over a Million Stars

https://aasnova.org/2026/07/01/a-new-catalog-of-stellar-rotation-periods-for-over-a-million-stars/
1•visha1v•24m ago•1 comments

The New Meta for Silicon Valley Startups Is Nihilism

https://gizmodo.com/the-new-meta-for-silicon-valley-startups-is-nihilism-2000780239
2•PLenz•26m ago•0 comments

Insights on Software Engineering, AI and DevOps Job Openings – July 2026

https://corvi.careers/blog/global_software-engineering_jobs_july_2026/
1•sp1982•27m ago•0 comments

Agents as Webs of Beliefs

https://www.lesswrong.com/posts/M39Z2CvyfaxZdaxR4/agents-as-webs-of-beliefs
1•gmays•27m ago•0 comments

Battleborn Battery Fire Aftermath and More Testing [video][5 Mins]

https://www.youtube.com/watch?v=nZtDDgdEh6c
2•Bender•27m ago•1 comments

Job seekers giving up: Labor force participation falls to lowest in 50 years

https://www.cnbc.com/2026/07/02/job-seekers-giving-up-labor-force-participation-rate-falls-to-low...
11•MilnerRoute•28m ago•4 comments

Show HN: PurRDF-High performance, cross platform RDF1.2

https://github.com/Blackcat-Informatics/purrdf/
1•paudley•29m ago•1 comments