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?

Most prompt injections our triage bot saw came from dev tools, not attackers

https://www.docsgpt.cloud/blog/github-triage-agents
1•alextttty•2m ago•0 comments

Redis reports pending messages that are deleted from its stream

https://octri.dev/blog/how-redis-was-reporting-pending-messages-that-were-already-deleted-from-it...
1•khalidkhair•3m ago•0 comments

Invalidity of the Alpoge Proposed Proof of the Riemann Hypothesis

https://philarchive.org/rec/NIEIOT-2
1•eembees•3m ago•0 comments

The eight year battle that explains why London's phone signal is terrible

https://www.londoncentric.media/p/london-phone-signal-bad-paddington
1•fanf2•4m ago•0 comments

AI Resolved All Null Pointer Dereferences in C

https://kapteko.com/ai-resolved-all-null-pointer-dereferences/
1•signa11•9m ago•0 comments

Ask HN: How are tech recruiters assessed on their recruiting skills?

1•_override•12m ago•0 comments

Meta AI Chief Warns of AI Risks;Obama's Ex-Speechwriter Calls It F***Ing Madness

https://www.ibtimes.sg/meta-ai-chief-warns-superintelligence-risks-obamas-former-speechwriter-cal...
1•Skywalker19•15m ago•0 comments

Show HN: ShadiLink – Luxury Indian wedding websites with smart WhatsApp RSVPs

https://shadilink.in
1•ankur14•16m ago•0 comments

Live Fleet Viewer

https://pequalnp.com/live
1•nvmdbljstm•23m ago•0 comments

Isometric Dubai

https://www.ahmedgalal.com/isometric/
1•Ozzie_osman•25m ago•0 comments

Check Any Time Zone Instantly – Timezoria AI

https://timezoria.org/
1•TimeZoriaAI•30m ago•1 comments

Enjoy this guy getting bricked over the detail of towers in GTA6

https://bsky.app/profile/floppyadult.com/post/3n2tgw7rofc2v
5•doener•31m ago•1 comments

Jcode: High performance coding agent harness written in Rust

https://github.com/1jehuang/jcode
1•thunderbong•33m ago•0 comments

Show HN: TalaDB – An embedded document and vector database that runs anywhere

https://github.com/taladb/taladb
1•akosidencio•39m ago•1 comments

Appwrite is moving from PHP to Rust

https://appwrite.io/blog/post/appwrite-is-moving-from-php-to-rust
1•eldad_fux•43m ago•0 comments

Sparks of Weight-Space Programming? Or Just Exploit Engineering

https://www.cyera.com/research/sparks-of-weight-space-programming-or-just-exploit-engineering
5•shachy12•43m ago•0 comments

Riemann Hypothesis [video]

https://www.youtube.com/watch?v=d6c6uIyieoo
1•tosh•45m ago•0 comments

Alignment Investigation of Mythos 5's Behaviour in UK AISI's Security Incident

https://arxiv.org/abs/2611.10030
1•anatolii1309•47m ago•0 comments

Broom – Zero-dependency Rust CLI to sweep stale build artifacts

https://github.com/Kolgrim33/broom
1•Sombra33•49m ago•0 comments

Technical Debt Rate Hike

https://dwm.me.uk/articles/2026/technical-debt-rate-hike/
4•dwm•51m ago•1 comments

Why Data Breach Disclosure Is So Hard

https://www.troyhunt.com/heres-why-data-breach-disclosure-is-so-hard-lessons-from-hundreds-of-ema...
1•rpassos•51m ago•0 comments

GTA 6 building personal behavioral profile for every player

https://huijzer.xyz/posts/174/gta-6-building-personal-behavioral-profile-for-eve
41•huijzer•54m ago•7 comments

.gov.uk Email Authentication 2026: After Mail Check

https://dmarcguard.io/research/gov-uk-email-authentication/
1•meysamazad•57m ago•0 comments

GL.iNet Security Notice 2026-11-20

https://www.gl-inet.com/blogs/blog/glinet-security-notice-2026-11-20
1•meysamazad•58m ago•0 comments

Manifesto of the Dinamika Games - for a world of cooperative, moving games

https://github.com/dinamika-games
1•mristin•59m ago•0 comments

Kernel developer proposes native Linux QUIC sockets

https://freenode.net/article/kernel-developer-proposes-native-linux-quic-sockets
2•meysamazad•59m ago•0 comments

Show HN: Lean Formalization of Quantum Gravity

https://atuf-explorer.toughlute16.chatgpt.site/
1•typeformer•1h ago•0 comments

Why Italy's healthcare system is ailing

https://www.repubblica.it/en/europe/news/2026/11/23/news/italy_public_healthcare_crisis_funding_w...
2•simonebrunozzi•1h ago•1 comments

I Never Change My Profile Pic (2014)

https://www.ryanhoover.me/post/why-i-never-change-my-profile-pic
1•tosh•1h ago•0 comments

Anthropic mathematician proves Riemann Hypothesis, most famous math problem

https://www.scientificamerican.com/article/anthropic-mathematician-claims-to-prove-riemann-hypoth...
3•nvmdbljstm•1h ago•1 comments