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?

Prevalence of Internet gaming disorder in young adults

https://www.sciencedirect.com/science/article/pii/S0306460325003454?
1•wjb3•1m ago•0 comments

Greece is teaching Germany how to get government online

https://www.economist.com/europe/2025/12/04/greece-is-teaching-germany-how-to-get-government-online
1•toomuchtodo•2m ago•0 comments

I Got Hacked – and Traced How Much Money Hacker Made (CVE-2025-66478)

https://twitter.com/duborges/status/1997293892090183772
1•eduardo_borges•6m ago•0 comments

Solar Neighborhoods (In Detroit)

https://detroitmi.gov/government/mayors-office/office-sustainability/energy/solar-neighborhoods
2•rmason•6m ago•0 comments

Mechanical power generation using Earth's ambient radiation

https://www.science.org/doi/10.1126/sciadv.adw6833
2•defrost•7m ago•0 comments

Osher Map Library

https://oshermaps.org/
1•andsoitis•7m ago•0 comments

A procedural macro that generates Rust code at compile-time using AI

https://github.com/germangb/ai-bindgen
1•deverton•7m ago•0 comments

New Device Generates Power by Beaming Heat to Space

https://spectrum.ieee.org/radiative-cooling-power
1•defrost•8m ago•0 comments

Hyperoperations in C++

https://khz.ac/software/hyperop.html
1•glittershark•8m ago•0 comments

Akamai buys Fermyon for WASM-based serverless function

https://devclass.com/2025/12/04/akamai-acquires-fermyon-for-wasm-based-serverless-functions-a-pos...
1•based2•11m ago•0 comments

tritonBLAS: Triton-based Analytical Approach for GEMM Kernel Parameter Selection

https://arxiv.org/abs/2512.04226
1•matt_d•12m ago•0 comments

Chrome browser extension for chatting about private pages with local LLMs

https://github.com/ivoras/llmaboutpage
1•ivoras•15m ago•0 comments

The mechanics of Golden Parachute clauses in the Netflix/Warner merger

https://riskparody.substack.com/p/netflix-just-bought-my-company-what
2•chrislguo•20m ago•1 comments

The significance of Brooker's autocodes in taking the early Manchester machines

https://www.curation.cs.manchester.ac.uk/computer50/www.computer50.org/mark1/gethomas/manchester_...
2•fanf2•20m ago•0 comments

Puzzling Out Elephant Longevity

https://trevorklee.substack.com/p/puzzling-out-elephant-longevity
1•Ariarule•23m ago•0 comments

Applets Are Officially Gone, But Java Is Back In The Browser

https://frequal.com/java/AppletsGoneButJavaInTheBrowserBetterThanEver.html
1•TeaVMFan•25m ago•1 comments

An Architecture for Building Brains from Top to Bottom? – EE Times Podcast

https://www.eetimes.com/podcasts/an-architecture-for-building-brains-from-top-to-bottom/
1•rbanffy•26m ago•0 comments

F-35 Fighter Jet's C++ Coding Standards [pdf]

https://www.stroustrup.com/JSF-AV-rules.pdf
26•birdculture•27m ago•8 comments

The metaverse is cooked, and Wall Street couldn't be happier

https://www.cnn.com/2025/12/04/business/meta-metaverse-stock-nightcap
2•voxadam•27m ago•1 comments

Ask HN: What's your go to for sharing sensitive files with non tech people?

3•privsen•31m ago•3 comments

Tech leaders fill $1T AI bubble, insist it doesn't exist

https://www.theregister.com/2025/12/05/ai_is_not_a_bubble/
1•Bender•34m ago•0 comments

iced 0.14 has been released (Rust GUI library)

https://github.com/iced-rs/iced/releases/tag/0.14.0
12•airstrike•34m ago•4 comments

Proxmox delivers its software-defined datacenter contender and VMware escape

https://www.theregister.com/2025/12/05/proxmox_datacenter_manager_1_stable/
5•Bender•35m ago•0 comments

Show HN: OpenFret – Guitar inventory, AI practice, and a note-detection RPG

https://openfret.com?referral=showhn
2•openfret•42m ago•0 comments

Scala Days 2025: Conference Highlights and Talk Recordings

https://scala-lang.org/blog/2025/11/26/scaladays-2025-review-video-announcement.html
1•based2•43m ago•1 comments

Why the Sanitizer API is just `setHTML()`

https://frederikbraun.de/why-sethtml.html
2•todsacerdoti•43m ago•0 comments

The History of Xerox

https://www.abortretry.fail/p/the-history-of-xerox
2•BirAdam•44m ago•0 comments

Cursor and Claude Opus 4.5 is a game changer

2•seinecle•46m ago•0 comments

Measuring Agents in Production

https://arxiv.org/abs/2512.04123
1•tlarkworthy•47m ago•0 comments

Puppy Linux

https://puppylinux-woof-ce.github.io/
3•doener•57m ago•1 comments