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: Metrics, Monitoring, and Alerting for Agents

https://github.com/chirrop/chirrop-mcp
2•percolatorly•6m ago•0 comments

A First Look at Muru

https://grahamdumpleton.me/posts/2026/11/a-first-look-at-muru/
1•lumpa•7m ago•0 comments

Courier: A macOS Postman Alternative

1•_booty•7m ago•0 comments

Zlib 1.4

https://github.com/madler/zlib/releases/tag/v1.4
2•zmodem•8m ago•0 comments

Moxmus

1•Moxmus•11m ago•0 comments

Show HN: All Browser Cleaner – clear every installed browser at once on Windows

https://apps.microsoft.com/detail/9pjs3wd4ts8r?hl=en-US&gl=US
1•Verokod•12m ago•0 comments

The right way to pet a parrot [video]

https://www.youtube.com/shorts/7Uw-sy07naM
1•lifeisstillgood•15m ago•0 comments

AI Is Never Wrong

https://aineverwrong.com/
1•gghootch•15m ago•0 comments

Show HN: X402 Music – API to search, license, and stream pre-cleared music stems

https://levievans.cloud
1•lilshadow1423•15m ago•0 comments

Web immediate-mode API that uses control-flow annotations instead of diffing

https://tejas-h5.github.io/imcf/?test=Overview
1•TejasH5•17m ago•1 comments

The Wild Web: Is AI is bringing back Web 1.0 blog culture?

https://blog.chaoticgood.computer/content/notes/the-wild-web
1•spelkington•17m ago•0 comments

Show HN: ZeBridge – PostgreSQL replicas on devices, synchronized over NATS

https://github.com/ndrean/ZeBridge
1•ndrean•19m ago•0 comments

Learning Almost Anything

https://litemind-0kq.pages.dev/learning-almost-anything/
10•keerthi_goli81•19m ago•0 comments

RDW approves changes to Tesla driver assistance system

https://www.rdw.nl/en/news/2026/rdw-approves-changes-to-tesla-driver-assistance-system
1•Someone•22m ago•1 comments

What did the Romans ever give Scotland?

https://www.theguardian.com/artanddesign/2026/nov/05/what-did-the-romans-ever-give-scotland-heate...
1•andsoitis•25m ago•0 comments

Which is the by-product: caffeine or decaf coffee? [pdf]

https://onlinelibrary.wiley.com/doi/full/10.1002/fes3.4
1•thunderbong•26m ago•0 comments

Nova beat Fable 5 with Opus 4.8

https://novaagentos.ai/news/how-nova-beat-fable-5-with-opus-4-8
1•emillime•30m ago•1 comments

Plugin to Create Product Videos

1•loveTech•33m ago•2 comments

LZAV 7.1: Enhanced Compression Ratio, Speed, and C/C++ Pointer Compliance

https://github.com/avaneev/lzav
1•birdculture•41m ago•0 comments

Show HN: Solving a personal Problem, create internal tool for your App in mins

https://anadock.com/
1•verain•41m ago•0 comments

CVS to break up $117B business, separating pharmacies from insurance

https://www.reuters.com/legal/transactional/cvs-health-split-two-separating-pharmacy-business-ins...
2•JumpCrisscross•43m ago•0 comments

Ask HN: Can current AI models reverse engineer CUDA drivers?

2•m00dy•43m ago•1 comments

Pro-Russian hackers claim responsibility for attacks on refrigerators in EU

https://swedenherald.com/article/pro-russian-hacker-groups-claim-responsibility-for-attacks-on-re...
2•consumer451•48m ago•0 comments

Slug Thug

https://slugthug.com
1•tillstazy•49m ago•0 comments

Can I ignore tech debt now?

https://gruhn.me/blog/2026-10-05/
2•ngruhn•52m ago•0 comments

Show HN: Formatide – Batch image conversion and collages without uploading

https://formatide.com/converter
1•mcflysj•52m ago•0 comments

Google to cut Search access for schools that block new AI tools

https://www.fox29.com/news/google-cut-search-access-schools-completely-block-new-ai-tools
2•Pepitobombito•58m ago•5 comments

OCR: from reading characters to understanding documents

https://www.extend.ai/resources/history-of-ocr
2•taubek•59m ago•0 comments

Graph of all Rust crates dependencies

https://github.com/Fiedzia/rust-crates-graph-analysis
3•fiedzia•59m ago•1 comments

Ask HN: What are the fundamentals of agentic coding?

4•guitarlimeo•1h ago•0 comments