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?

US-Canada border library gets new Quebec-only entrance

https://www.bbc.com/news/videos/clyrvrde160o
1•NalNezumi•17s ago•0 comments

There are too many JavaScript schema libraries, so support only one

https://www.inngest.com/blog/too-many-javascript-schema-libraries-support-only-one
1•goodoldneon•17s ago•0 comments

Show HN: Flightdeck – self-hosted observability and control for AI agents

https://github.com/flightdeckhq/flightdeck
1•pykul•1m ago•0 comments

Humans vs. Bots – Who Does the Em Dash Better?

https://www.nytimes.com/2026/06/10/books/review/em-dash-chatbot-human-language.html
1•cainxinth•1m ago•0 comments

Trump T1 Phone Is a facelifted 2024 HTC U24 Pro

https://www.ifixit.com/News/117789/teardown-confirms-the-trump-phone-is-a-gold-painted-htc-u24-pro
1•rickdeckard•1m ago•0 comments

SpaceX soon-to-be millionaires spend big on luxury homes, watches, private jets

https://www.cnbc.com/2026/06/11/spacex-millionaires-wealth-spending.html
1•1vuio0pswjnm7•2m ago•0 comments

iOS 27 System Prompts

https://gist.github.com/samhenrigold/4d107eddf2c0a9d0afb428922adcc2c3
2•LaSombra•2m ago•0 comments

Dads Rock: The Evidence

https://aibm.org/research/dads-rock-the-evidence/
1•gmays•2m ago•0 comments

Chrome extensions with 10M+ devices are actively vulnerable to UXSS and UXSG

https://rebora.io/blog/spyder-and-maxss-chrome-extension-vulnerabilities-put-millions-at-risk/
3•galwm•4m ago•0 comments

DuckDB WASM

https://github.com/duckdb/duckdb-wasm
2•tosh•4m ago•0 comments

Show HN: Fabrika, from babysitting agents to software factories

https://fabrika-ai.com/
1•berkaycubuk•6m ago•0 comments

New York City Leaders Propose Building More Homes on Top of Libraries

https://www.nytimes.com/2026/06/11/nyregion/nyc-libraries-affordable-housing-menin.html
1•mistersquid•6m ago•0 comments

From garbage can to compost heap

https://mikegallagher.org/posts/from-garbage-can-to-compost-heap/
1•speckx•6m ago•0 comments

I started blogging, here is everything I did not write about

https://torge.rdahl.de/blog/the-things/
1•torgeros•7m ago•0 comments

Show HN: Lumen–free Real-time LLM token and cost monitor

https://github.com/DataGrout/lumen
1•Datagrout•9m ago•0 comments

Oracle's AI spending blows past estimates, raising worries over growing debt

https://www.reuters.com/technology/oracle-beats-fourth-quarter-revenue-estimates-2026-06-10/
2•1vuio0pswjnm7•10m ago•0 comments

ZenNotes – Open-source local Markdown app with system-wide Vim motions

https://github.com/ZenNotes/zennotes
1•daesorin•11m ago•0 comments

Hacker Tube – Timeless tech videos (popular on Hacker News)

https://www.orangecrumbs.com/v
3•oyster143•12m ago•0 comments

Why Thermodynamics Rules Future Orbital Data Centers

https://spectrum.ieee.org/orbital-data-centers-heat
3•rbanffy•13m ago•0 comments

Google DeepMind is worried about when agents start to interact

https://www.technologyreview.com/2026/06/11/1138794/google-deepmind-is-worried-about-what-happens...
2•leopoldj•13m ago•0 comments

Show HN: 5dive – Run a Team of Claude Code Agents from Telegram

https://github.com/5dive-com/5dive
3•lodar•14m ago•0 comments

Show HN: GeoLeadScraper – Open-source Google Maps scraper (Chrome extension)

https://github.com/ozhehkovski/geoleadscraper
2•bizdata•15m ago•0 comments

DSF 2026 Fundraising Goals

https://www.djangoproject.com/weblog/2026/jun/10/dsf-2026-fundraising-goals/
2•petr25102018•15m ago•0 comments

Too-ly.eu – browser-based dev tools with no tracking, no login, EU-hosted

https://www.too-ly.eu/
2•quintoncarroll•15m ago•0 comments

Workers are spending over 6 hours a week botsitting AI, fueling job frustration

https://www.businessinsider.com/botsitting-ai-hidden-human-labor-at-work-2026-6
9•ZeidJ•16m ago•1 comments

Show HN: Editxr – open-source WYSIWYG Markdown editor for the terminal

https://github.com/pixdeo/editxr
4•mromanuk•17m ago•2 comments

Hawkish GOP lawmaker Don Bacon says he was hacked by Russia

https://www.politico.com/live-updates/2026/06/10/congress/hawkish-gop-lawmaker-don-bacon-says-he-...
2•campuscodi•17m ago•0 comments

25.3% of Bitcoin sits at addresses with an exposed public key

https://chainquery.com/reports/quantum-exposure
5•granya•17m ago•2 comments

Homebrew 6.0.0

https://brew.sh/2026/06/11/homebrew-6.0.0/
10•mikemcquaid•18m ago•1 comments

Why adorable bees are emerging from this cemetery

https://grist.org/cities/why-millions-of-adorable-bees-are-emerging-from-this-cemetery/
3•speckx•18m ago•0 comments