frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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•7mo 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•7mo 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?

Eylenburg's Tech Website

https://eylenburg.github.io/
1•thunderbong•2m ago•0 comments

ICLR 2026 Response to Security Incident

https://blog.iclr.cc/2025/12/03/iclr-2026-response-to-security-incident/
2•nsoonhui•7m ago•0 comments

Ask HN: How does one build personal network?

2•piratesAndSons•13m ago•1 comments

Architecting Security for Agentic Capabilities in Chrome

https://security.googleblog.com/2025/12/architecting-security-for-agentic.html
1•ShinyNewFeature•14m ago•0 comments

'Circularity' is a flashing warning for the AI boom

https://www.washingtonpost.com/opinions/2025/12/08/ai-boom-investment-circular-dot-com-bubble/
1•richardatlarge•17m ago•1 comments

Blockchain, Stablecoins and Smart Contracts: A Guide for Modern Enterprises

https://lightrains.com/blogs/blockchain-stablecoins-smart-contracts/
1•niksmac•18m ago•0 comments

Resh v0.7 – AI-Native Automation Shell (25/30 Handles Complete)

https://github.com/millertechnologygroup/resh
1•smille69•18m ago•1 comments

Amorce – Universal Trust Protocol for AI Agents

1•trebortgolin•20m ago•0 comments

Open Sourcing the Remix Store

https://remix.run/blog/oss-remix-store
1•doppp•21m ago•0 comments

Linux Foundation Leader: We're Not in an AI Bubble

https://thenewstack.io/linux-foundation-leader-were-not-in-an-ai-bubble/
2•CrankyBear•21m ago•0 comments

San Francisco Sues Ultraprocessed Food Companies

https://www.nytimes.com/2025/12/02/us/san-francisco-ultraprocessed-food-lawsuit.html
2•raybb•22m ago•0 comments

Spectrum ISP SSL/TLS Interception Bug

https://andrewgazelka.notion.site/SSL-Issue-2c46ce90d17f80a9bc30ff3402f7f865
2•sleepingreset•23m ago•0 comments

Techmeme: The news site SV CEOs like

https://techmeme.com/
1•sleepingreset•25m ago•0 comments

How to Use N8n to Sync Google Calendar Automatically

https://www.indiehackers.com/post/how-to-use-n8n-to-sync-google-calendar-automatically-a6BYizPK8i...
1•plakhlani2•26m ago•0 comments

Foundations of Metrology (1981) [pdf]

https://nvlpubs.nist.gov/nistpubs/jres/086/jresv86n3p281_A1b.pdf
1•nill0•27m ago•0 comments

The Future of Fleet – The Fleet Blog

https://blog.jetbrains.com/fleet/2025/12/the-future-of-fleet/
2•ossusermivami•27m ago•0 comments

Prisma ORM Without Rust

https://www.prisma.io/blog/prisma-orm-without-rust-latest-performance-benchmarks
1•justinhj•29m ago•0 comments

The Day We Realized Who Colonizes the Galaxy

1•EGreg•32m ago•0 comments

Show HN: Edit JSON files with comments, read them as clean JSON

https://github.com/skorotkiewicz/jsonc
2•modinfo•34m ago•0 comments

Major N.L. healthcare report contains errors likely generated by AI

https://theindependent.ca/news/lji/major-n-l-healthcare-report-contains-errors-likely-generated-b...
1•toomuchtodo•37m ago•1 comments

RGE-256:A New ARX-Based PRNG with Structured Entropy and Empirical Validation

1•sreid90•39m ago•0 comments

The power of proximity to coworkers [pdf]

https://pallais.scholars.harvard.edu/sites/g/files/omnuum5926/files/2025-11/Power%20of%20Proximit...
6•yodon•46m ago•3 comments

Satellite boom is a 'growing threat' to space telescopes

https://abcnews.go.com/Technology/satellite-boom-growing-threat-space-telescopes-nasa-study/story...
2•gmays•49m ago•0 comments

Australia's teen social media ban has unofficially begun

https://www.abc.net.au/news/2025-12-04/when-is-the-teen-social-media-ban-what-apps-are-banned/106...
4•jacobedawson•50m ago•3 comments

Cooperation and rapport promote interpersonal synchrony

https://journals.plos.org/plosone/article?id=10.1371/journal.pone.0333709
1•PaulHoule•58m ago•0 comments

British Transport Police to Trial Live Facial Recognition at Railway Stations

https://www.btp.police.uk/news/btp/news/england/british-transport-police-to-trial-use-of-live-fac...
2•a2fz•59m ago•0 comments

Operation Bluebird Inc files petition to cancel the Twitter trademarks

https://ttabvue.uspto.gov/ttabvue/v?pno=92090266&pty=CAN&eno=1
3•davideg•1h ago•1 comments

Gall's Law: Working complex systems invariably evolve from simple systems

https://principles-wiki.net/principles:gall_s_law
2•kaonwarb•1h ago•0 comments

BRICS Gold-Backed Digital Currency: Reshaping Global Trade in 2025

https://discoveryalert.com.au/brics-gold-backed-digital-currency-initiative-2025/
1•rguiscard•1h ago•0 comments

Common Performance Tuning Advice: Some Flaws

https://ricomariani.medium.com/common-performance-tuning-advice-some-flaws-b2c427fad7ca
1•dbgrman•1h ago•0 comments