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

An Appreciation for Technical Architecture

https://interconnected.org/home/2026/03/28/architecture
1•goranmoomin•1m ago•0 comments

Max Datom – Interactive Datomic Tutorial

https://max-datom.com/
1•smartmic•2m ago•0 comments

Show HN: Agentmatic, AI marketing platform that generates full campaigns for you

https://agentmatic.app
1•kvntrnz•3m ago•0 comments

Fullscreen Rendering

https://code.claude.com/docs/en/fullscreen
1•dsr12•3m ago•0 comments

California should extend Diablo Canyon nuclear plant's lifespan

https://www.sfchronicle.com/opinion/openforum/article/diablo-canyon-nuclear-power-california-2209...
1•mpweiher•4m ago•0 comments

A Potential Termination Event – cascading failure across the global food system

https://www.monbiot.com/2026/04/02/a-potential-termination-event/
1•helpfulmandrill•4m ago•0 comments

CSRF and LDAP injection found and fixed in pac4j security framework

https://www.pac4j.org/blog/security-advisory-pac4j-core-and-ldap.html
2•traekfuglene•5m ago•0 comments

Earthquake in Santa Cruz Mountains

https://earthquake.usgs.gov/earthquakes/eventpage/nc75337442/executive
2•OhMeadhbh•7m ago•1 comments

Show HN: Mesh3d.gallery – a curated collection of 3D websites

https://mesh3d.gallery
1•shreedx•7m ago•0 comments

New laws to make it easier to cancel subscriptions and get refunds

https://www.bbc.co.uk/news/articles/cvg0v36ek2go
2•chrisjj•9m ago•0 comments

Google, Cloudflare, Cisco Lose Pirate Site DNS Blocking Appeal in France

https://torrentfreak.com/google-cloudflare-cisco-lose-pirate-site-dns-blocking-appeal-in-france/
1•HotGarbage•12m ago•0 comments

The First MCP Server for Cybersecurity Product and Market Analysis

https://cybersectools.com/mcp-access
1•nkokhreidze•14m ago•2 comments

PDNob 2.0 – An Affordable PDF Editor with Rebuilt, Faster, Easier Features [video]

https://www.youtube.com/watch?v=vwl67IbqW30
2•pdftips•15m ago•0 comments

Attention Residuals

https://arxiv.org/abs/2603.15031
1•jonbaer•16m ago•0 comments

Show HN: Memsearch – Persistent, cross-agent, cross-session memory for AI agents

https://github.com/zilliztech/memsearch
1•zhangchen•19m ago•0 comments

Ask HN: How are you choosing the model when using pi.dev?

1•harlequinetcie•20m ago•0 comments

IBM Announces Strategic Collaboration with Arm

https://newsroom.ibm.com/2026-04-02-ibm-announces-strategic-collaboration-with-arm-to-shape-the-f...
6•bonzini•21m ago•0 comments

'Weak and pathetic': why is the EU not using its leverage to stop Israel?

https://www.theguardian.com/world/2026/apr/02/why-eu-not-using-leverage-israel-lebanon-gaza
2•hebelehubele•23m ago•0 comments

Earthquake 4.9 in Bay Area Santa Cruz mtns

https://earthquake.usgs.gov/earthquakes/eventpage/ew1775119290/executive
4•redwood•26m ago•0 comments

Cinema Obscura: "Vento Del Sud" a.k.a. "South Wind"

http://itsamadmadblog2.blogspot.com/2026/04/cinema-obscura-vento-del-sud-aka-south.html
1•jjgreen•27m ago•0 comments

Apollo 15 postal covers incident

https://en.wikipedia.org/wiki/Apollo_15_postal_covers_incident
1•iNic•28m ago•0 comments

Guardian Angel Protocol (Gap) v10.0: Hardware-Enforced AI Confinement

https://github.com/Lex-Col/Guardian-Angel-Protocol
1•Alexand3rc•28m ago•1 comments

Signups Are Lying to You

https://mvrckhckr.com/articles/your-signups-are-lying-to-you
1•mvrckhckr•29m ago•0 comments

Extremis V1 Is Real

1•victorblain•29m ago•0 comments

The cover of "C++: The Programming Language" raises questions

https://devblogs.microsoft.com/oldnewthing/20260401-00/?p=112180
2•krylon•31m ago•2 comments

Sequoia's 1977 investment memo into Apple Computer

https://twitter.com/sequoia/status/2039434032132575544
1•matthieu_bl•31m ago•0 comments

Show HN: Elytra – A 420g CNC aluminum, wireless split keyboard

https://www.elimkeys.com/
4•cui511511•38m ago•2 comments

Show HN: SideX – VS Code rebuilt on Tauri instead of Electron (96% smaller)

https://github.com/Sidenai/sidex
4•KendallCBooker•38m ago•0 comments

AWS S3 Intros Account-Regional Namespaces, Ending 18 Years of Name Collisions

https://www.infoq.com/news/2026/03/s3-account-regional-namespaces/
2•rbanffy•43m ago•0 comments

Go: Do you need a repository layer on top of sqlc?

https://rednafi.com/shards/2026/03/repository-layer-over-sqlc/
2•TobiasBerg•48m ago•0 comments