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?

Why do ARM chips have an instruction with JavaScript in the name (FJCVTZS)?

https://stackoverflow.com/questions/50966676/why-do-arm-chips-have-an-instruction-with-javascript...
1•birabittoh•3m ago•0 comments

$262M stolen in account takeover fraud schemes this year, FBI says

https://therecord.media/millions-in-account-takeover-fbi-warns-ahead-of-holidays
1•PaulHoule•5m ago•0 comments

AI Essay Writer for Your Academic Success

https://essaypass.ai
1•osek•7m ago•0 comments

Scientists Propose a Physical Warp Drive

https://darkmatter.website/article/scientists-propose-a-physical-warp-drive/
1•darkmatternews•9m ago•0 comments

Show HN: Built a Global Dating App in 100 Days Using Cursor ($20/Mo)

https://www.wctokyoseoul.com/ko
1•abuskorea•10m ago•0 comments

Looking for a website thats more modern than Hacker News?

https://www.upvote.social
1•upvotenow•16m ago•0 comments

Show HN: A free derivative calculator with step-by-step explanations

https://derivativecalculatortool.online
1•maxnew•18m ago•1 comments

Devgraph

https://devgraph.ai
1•bellamoon544•18m ago•1 comments

Show HN: A Go client for GitHub Models (simple, fast, MIT licensed)

https://github.com/tigillo/githubmodels-go
1•maaydin•20m ago•1 comments

Google DeepMind partners with UK gov to support security in AI era

https://deepmind.google/blog/strengthening-our-partnership-with-the-uk-government-to-support-pros...
2•newsuser•20m ago•0 comments

Kimrio357 Gmail.com

https://github.com/kamranahmedse/developer-roadmap
1•kimrio•24m ago•0 comments

CanIUse Embed

https://caniuse-embed.vercel.app/
1•moebrowne•24m ago•0 comments

Tired of fake AI emotions, so I wrote code to measure its actual "Entropy Loss"

https://silicon-pain-index.streamlit.app/
1•IkanRiddle•28m ago•2 comments

Rust 1.92.0

https://blog.rust-lang.org/2025/12/11/Rust-1.92.0/
3•amalinovic•29m ago•0 comments

Orbit – AI Conversation Archive

https://orbitarchive.com/
1•richarddeetlefs•30m ago•0 comments

Show HN: ClipFlow – Free clipboard history for macOS (like Windows Win+V)

https://github.com/praneeth552/clipflow
1•SaiPraneeth1•36m ago•0 comments

The Asahi Illusion

https://www.futilitycloset.com/2025/12/12/the-asahi-illusion/
1•beardyw•36m ago•0 comments

Harper: AI-powered surf forecast platform built by surfers

https://harper.surf
1•fbenevides•38m ago•0 comments

Ditching PostgreSQL, 10M+ Users Web3 Analytics

https://www.velodb.io/blog/why-ave-ai-chose-velodb-over-clickhouse-snowflake-for-web3-analytics
1•qinchencq•39m ago•0 comments

Layers of Meaning

https://claude.ai/share/dee4a3eb-ca54-4d83-9450-b9c270102ba5
2•stoicfungi•47m ago•2 comments

Greenlandic women's victory in legal fight with Denmark over forced IUD scandal

https://www.theguardian.com/world/2025/dec/11/greenlandic-women-claim-victory-in-legal-fight-with...
3•binning•48m ago•0 comments

The Open Web Index

https://openwebindex.eu/
1•bilegeek•48m ago•0 comments

[dead]

https://thatshubham.com/blog/mas
1•DorkyPup•48m ago•0 comments

Startups on hard mode: Oxide. Part 1: Hardware (2024)

https://newsletter.pragmaticengineer.com/p/oxide
1•tosh•49m ago•0 comments

Show HN: CodeProt – Filter PR nitpicks using AST and context-aware analysis

https://codeprot.com
1•allenz_cheung•51m ago•0 comments

Over 10k Docker Hub images found leaking credentials, auth keys

https://www.bleepingcomputer.com/news/security/over-10-000-docker-hub-images-found-leaking-creden...
1•pabs3•51m ago•0 comments

'The patriarchy runs deep': women still getting a raw deal in the workplace

https://www.theguardian.com/global-development/2025/dec/10/women-workplace-equality-gender-world-...
3•binning•52m ago•0 comments

Trump signs executive order blocking states from regulating AI

https://www.theguardian.com/us-news/2025/dec/11/trump-executive-order-artificial-intelligence
7•pera•54m ago•1 comments

How My Small Personal Blog Hit 100K – and the Posts That Made It Happen

https://www.michaelshoe.com/how-my-small-personal-blog-hit-100k-impressions-and-the-strange-posts...
1•michaelshoe•59m ago•0 comments

The Hallway of the Mountain King

https://medium.com/luminasticity/the-hallway-of-the-mountain-king-3b676c31ce9e
1•bryanrasmussen•59m ago•0 comments