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

Akin's Laws of Spacecraft Design [pdf]

https://www.ece.uvic.ca/~elec399/201409/Akin%27s%20Laws%20of%20Spacecraft%20Design.pdf
1•tosh•12s ago•0 comments

Show HN: Adding some fun and interactivity to my site

https://blazingbanana.com/
1•properbrew•2m ago•0 comments

2025 in Science

https://en.wikipedia.org/wiki/2025_in_science
1•gtsnexp•2m ago•0 comments

Better Communication Protocols with Ada's Record Representation Clauses

https://blog.liampwll.com/posts/ada_record_representation_protocols/
1•LiamPowell•5m ago•0 comments

Using Variational Autoencoders to Generate Human Faces

https://mayberay.bearblog.dev/generating-human-faces-with-variational-autoencoders/
1•mugamuga•5m ago•1 comments

Show HN: Make the most of your limited life, with ideas aligned with your goals

https://www.vivotime.net/
1•lopespm•6m ago•0 comments

Phone Searches at U.S. Borders: What Travelers Need to Know

https://www.nytimes.com/2025/12/31/travel/airport-border-phone-search.html
1•fleahunter•8m ago•0 comments

Show HN: Geospatial Atlas, a Fork of Apple's Embedding Atlas for Geospatial

https://github.com/do-me/geospatial-atlas
1•do-me•9m ago•0 comments

The countries where digital ID already exists

https://news.sky.com/story/the-countries-where-digital-id-already-exists-13441075
1•smurda•11m ago•0 comments

KernelEvolve: Agentic kernel coding for heterogeneous AI accelerators (Meta)

1•gangliao•13m ago•0 comments

International Date Line

https://en.wikipedia.org/wiki/International_Date_Line
1•jakobedding•13m ago•0 comments

Fixing a Buffer Overflow in Unix v4 Like It's 1973

https://sigma-star.at/blog/2025/12/unix-v4-buffer-overflow/
2•Deeg9rie9usi•14m ago•0 comments

A Comprehensive Guide to Fakra Connectors

https://community.element14.com/technologies/experts/b/comprehensive-guides/posts/a-comprehensive...
1•JojoFatsani•16m ago•0 comments

Show HN: Sovereign AGI – Functional Implementation by Ananya Soni

https://github.com/AI-Sovereign/Multimodal-AGI-Architecture-Implementation-v1
1•AISovereignDev•17m ago•0 comments

Tools to Help You Focus

http://postmake.io/zen-list
1•Malfunction92•17m ago•0 comments

The most durable tech is boring, old, and everywhere

https://www.theregister.com/2025/12/31/long_lived_tech/
1•jjgreen•18m ago•0 comments

Eventual Rust in CPython

https://lwn.net/Articles/1046933/
1•0xpgm•18m ago•0 comments

A Solid Load of Bull

https://loup-vaillant.fr/articles/solid-bull
3•todsacerdoti•21m ago•0 comments

Show HN: Is it time yet? Countdowns for Google Meet

https://isittime.app/
1•cmaster11•24m ago•1 comments

Disney will pay $10M to settle children's data privacy lawsuit

https://www.bleepingcomputer.com/news/security/disney-will-pay-10m-to-settle-claims-of-childrens-...
1•fleahunter•29m ago•0 comments

Unexpected Surprise: Windows 11 Outperforming Linux on an Intel Arrow Lake H

https://www.phoronix.com/review/windows-beats-linux-arl-h
1•oshanz•31m ago•0 comments

Several ways is which software can be surprisingly slow

https://gregoryszorc.com/blog/2021/04/06/surprisingly-slow/
2•fanf2•31m ago•0 comments

What is the best comment in source code you have ever encountered? (2011)

https://stackoverflow.com/questions/184618/what-is-the-best-comment-in-source-code-you-have-ever-...
2•chistev•41m ago•1 comments

Why isn't Google showing my site's logo in search results?

https://www.google.com/search?q=site%3Avect.pro&oq=&gs_lcrp=EgZjaHJvbWUqCQgAECMYJxjqAjIJCAAQIxgnG...
2•WoWSaaS•43m ago•3 comments

Would you still celebrate New Year's Day, if it wasn't a day off?

2•olek•46m ago•0 comments

Making end-to-end encrypted AI chat feel like logging in

https://confer.to/blog/2025/12/passkey-encryption/
1•Vinnl•49m ago•0 comments

Execute Code in a Remote Python Process

https://rawomb.at/posts/python-remote-exec/
2•lumpa•52m ago•0 comments

GitHub – tomasf/Cadova: Swift DSL for parametric 3D modeling

https://github.com/tomasf/Cadova
2•bdcravens•56m ago•0 comments

2026 budget reset: I Converted official tax/fee schedules into wallet-level math

https://www.thepricer.org/how-much-will-new-2026-laws-cost-you/
2•jimmyhamdriks•58m ago•1 comments

Sora2 API – Sora 2 Video Generation API

https://sora2-api.com
4•paidx•59m ago•1 comments