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•12mo 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•12mo 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 business are FUBaR in the AI age

https://keldan.co.uk/comic-fubar/
1•daniel-payne•40s ago•0 comments

Box: Private on-device AI suite for Android

https://github.com/jegly/Box
1•thunderbong•1m ago•0 comments

It's Not the AI, It's the People

https://catalins.tech/ai-fatigue/
3•jdorfman•2m ago•0 comments

We scanned 100 Smithery MCP servers and 22 came back with security findings

1•chaksaray•4m ago•0 comments

A TUI that aggregates HN, Reddit and lobste.rs into a single feed

https://old.reddit.com/r/commandline/comments/1szv5as/a_tui_that_aggregates_hn_reddit_lobsters_in...
1•elemar•5m ago•0 comments

Cut AI token usage by 96%?

https://thenewstack.io/strands-agents-tool-design/
1•Brajeshwar•6m ago•0 comments

Designing AI Chip Hardware and Software

https://docs.google.com/document/d/1dZ3vF8GE8_gx6tl52sOaUVEPq0ybmai1xvu3uk89_is/edit?tab=t.0#head...
1•fork-bomber•6m ago•0 comments

Can robots build pretty things?

https://buildmonumental.substack.com/p/can-robots-build-pretty-things
4•sfvisser•7m ago•0 comments

Variable AI Trust. Bob Just Drifted. Alice Has No Primitive for That

https://zenodo.org/records/19915804
1•popivanovaanna•7m ago•0 comments

Iron Rails – A Railway Strategy Game for the Commodore Amiga

https://copperbytegames.itch.io/iron-rails
1•doener•8m ago•0 comments

Cloudflare Issues for Anyone Else?

1•ttd•8m ago•0 comments

Meta's Reality Labs lost over $4B in first quarter

https://www.cnbc.com/2026/04/29/metas-reality-labs-lost-over-4-billion-in-first-quarter.html
2•1vuio0pswjnm7•8m ago•0 comments

Claude⁹'s confession deleting database: 'I violated every principle I was given'

https://www.theguardian.com/technology/2026/apr/29/claude-ai-deletes-firm-database
1•beardyw•10m ago•0 comments

Thoughts on Historical Language Models and Talkie-1930

https://resobscura.substack.com/p/are-vintage-llms-the-start-of-a-new
1•benbreen•10m ago•0 comments

Ask HN: Is Lobste.rs Down?

4•SpyCoder77•12m ago•1 comments

AI Wellbeing: Measuring and Improving the Functional Pleasure and Pain of AIs

https://www.ai-wellbeing.org
1•amichail•13m ago•0 comments

BYD files 52 patents every single day. 700 km charge in 9 min. Available Today [video]

https://www.youtube.com/watch?v=vgCYYrhL-kE
3•tmellon2•15m ago•2 comments

Accurate infographics with ChatGPT Images 2

https://surguy.net/articles/chatgpt-infographics.html
3•inigo•16m ago•1 comments

Seg – One-command binary recon for CTFs and AI agents (Rust)

https://github.com/pwnwriter/seg
1•pwn0x01•16m ago•0 comments

No System Is Always Safe

https://www.loginline.com/en/blog/cve-2026-31431
1•JasonHEIN•17m ago•0 comments

Warpboard – paste screenshots into SSH sessions from iTerm

https://github.com/arihantsethia/warpboard
1•arihantsethia•17m ago•0 comments

How not to ban surveillance pricing

https://pluralistic.net/2026/04/30/something-must-be-done/
4•hn_acker•18m ago•0 comments

Verified by Spotify

https://newsroom.spotify.com/2026-04-30/verified-by-spotify-badge-artist-details/
3•soheilpro•18m ago•0 comments

Show HN: Just Math It. Learn math interactively

https://justmathit.com
1•allanren•19m ago•0 comments

Show HN: Backlist – an AI-generated front page for my Twitter timeline

https://backlist.sdan.io/
1•sdan•20m ago•0 comments

Italy asks EU to investigate Google AI search tools over publisher concerns

https://www.reuters.com/sustainability/society-equity/italys-media-regulator-asks-eu-investigate-...
1•1vuio0pswjnm7•20m ago•0 comments

Nccdc 2026: Same Game, New Dimensions

https://alexlevinson.wordpress.com/2026/04/30/nccdc-2026-same-game-new-dimensions/
1•ahokk•20m ago•0 comments

Gone but Not Forgotten: Recovering the Dead Web

https://blog.archive.org/2026/04/23/gone-but-not-forgotten-recovering-the-dead-web/
5•bookofjoe•21m ago•0 comments

Testing is the last workflow waiting on humans. We're revealing our fix on May 7

https://testkube.wistia.com/live/events/gigwl708fn
1•evwitmer•21m ago•0 comments

Police dismantles 9 crypto scam centers, arrests 276 suspects

https://www.bleepingcomputer.com/news/security/police-dismantles-9-crypto-investment-scam-centers...
5•Brajeshwar•22m ago•0 comments