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

Include-Base-44 European Languages Benchmark Leaderboard

https://huggingface.co/spaces/speakleash/include-base-european-leaderboard
1•taubek•11s ago•0 comments

LLMs and Your Career

https://notes.eatonphil.com/2026-01-19-llms-and-your-career.html
1•SouravInsights•20s ago•0 comments

Building Your Own Efficient uint128 in C++

https://solidean.com/blog/2026/building-your-own-u128/
1•todsacerdoti•47s ago•0 comments

AI-Generated Faces Fool Most People, but Photo Training Improves Detection

https://petapixel.com/2025/12/29/ai-generated-faces-fool-most-people-but-photo-training-improves-...
1•PaulHoule•2m ago•0 comments

Show HN: Driftcheck – Pre-push hook that catches doc/code drift with LLMs

https://github.com/deichrenner/driftcheck
1•deichrenner•3m ago•0 comments

Sandvault: Run AI agents isolated in a sandboxed macOS user account

https://github.com/webcoyote/sandvault
1•Luc•3m ago•0 comments

Show HN: Automating Type Safety for Mission-Critical Industrial Systems

https://www.stackbuilders.com/case-studies/plow-technologies-automating-type-safety-at-scale-for-...
1•StackBuilders•4m ago•0 comments

Vision: A Computational Investigation [pdf]

https://people.ciirc.cvut.cz/~hlavac/pub/MiscTextForStudents/1982MarrDavidVisionBook.pdf
1•foster_nyman•8m ago•0 comments

Anti-Coercion Instrument

https://en.wikipedia.org/wiki/Anti-Coercion_Instrument
2•kelseyfrog•9m ago•0 comments

Operational AI Governance and the Runtime Decision Ownership Gap

1•vivekanandsingh•9m ago•0 comments

The challenges of soft delete

https://atlas9.dev/blog/soft-delete.html
2•buchanae•11m ago•0 comments

Are 'tech dense' farms the future of farming?

https://www.bbc.com/news/articles/c78e4l3rm22o
1•rmason•11m ago•0 comments

Inside the secret world of Japanese snack bars

https://www.bbc.com/travel/article/20260116-inside-the-secret-world-of-japanese-snack-bars
2•rmason•13m ago•0 comments

Ralph, too, needs a test train split

https://softwaredoug.com/blog/2026/01/17/ai-coding-needs-test-train-splits
1•JnBrymn•15m ago•0 comments

Building a fast highly-configurable Rust-based backtesting system

https://nexustrade.io/blog/building-a-lightning-fast-highly-configurable-rust-based-backtesting-s...
1•austin-starks•18m ago•1 comments

Show HN: WP-CLI and Abilities API for Wordfence

https://github.com/trueqap/wpcli-for-wordfence
1•justinde•19m ago•0 comments

Davos Live: Canadian PM Mark Carney Speaks at World Economic Forum

https://www.youtube.com/watch?v=dE981Z_TaVo
3•consumer451•19m ago•2 comments

Renault to team up with French defence group to make drones for Ukraine

https://www.defensenews.com/global/europe/2026/01/20/french-carmaker-renault-to-produce-long-rang...
4•megalomanu•21m ago•0 comments

Ask HN: How many of you are using Spotify APIs for their applications?

https://community.spotify.com/t5/Spotify-for-Developers/bd-p/Spotify_Developer
1•cipz•21m ago•1 comments

Show HN: ElkDesk – I rage-quit Zendesk and built my own

https://elkdesk.com
2•julianpeters•23m ago•0 comments

Show HN: I'd love feedback on my Markdown-to-LinkedIn Carousel webapp (desktop)

https://inslide.malvik.de
1•svenmalvik•24m ago•0 comments

Systemd and AI

https://devpoga.org/systemd-ai/
1•kianN•24m ago•0 comments

Show HN: Agent Skills Leaderboard

https://skills.sh
1•andrewqu•25m ago•0 comments

A Metabolic Workspace

https://www.joanwestenberg.com/a-metabolic-workspace/
1•bookofjoe•25m ago•0 comments

FastMCP 3.0

https://www.jlowin.dev/blog/fastmcp-3
11•jlowin•26m ago•0 comments

Show HN: AI Vibe Coding Hackathon $500k+ in prizes

https://vibe.devpost.com
1•abdibrokhim•26m ago•0 comments

Typography on Pencils (2023)

https://www.presentandcorrect.com/blogs/blog/typography-on-pencils-1-5
2•NaOH•29m ago•0 comments

Ask HN: I need feedback for AI driven dashboard for embedded analytics

https://querypanel.io/auth/login
1•civancza•29m ago•2 comments

Calculus by L.V. Tarasov: A Socratic Dialogue (1982) [pdf]

https://archive.org/details/TarasovCalculus
2•vitaelabitur•30m ago•1 comments

The end of OnePlus: Oppo rumored to retire smartphone brand due to less sales

https://www.notebookcheck.net/The-end-of-OnePlus-Oppo-rumored-to-retire-smartphone-brand-due-to-p...
1•methuselah_in•32m ago•0 comments