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?

Redundancy, the Game about Getting Laid Off

https://games-by-will.com/redundancy/
1•wjuseck•58s ago•0 comments

Agent v0 Open-source multi-agent AI orchestration terminal

https://github.com/centeler34/Agent-v0
1•agent-v0•2m ago•1 comments

The AI Is Not Learning from You

https://jasonvella.com/posts/aiisnotlearningfromyou/
1•gpi•5m ago•0 comments

Fractran: A Simple Universal Programming Language for Arithmetic

https://leetarxiv.substack.com/p/fractran-a-simple-universal-programming
1•rantingdemon•8m ago•0 comments

LMMs-Lab Writer: AI-native LaTeX editor. Git built-in, open source

https://writer.lmms-lab.com/
1•m_kos•8m ago•0 comments

Show HN: Enter an Instagram/TikTok handle, get a data-backed price for collab

https://priceinfluencer.com
11•bozkan•8m ago•1 comments

How a British father and son made a fortune in Dubai then became wanted men

https://www.theguardian.com/world/2026/apr/05/british-father-son-dubai-fortune-wanted-men-prison-...
1•akbarnama•9m ago•0 comments

Show HN: Turn any prediction into ranked Kalshi/Polymarket trades [video]

https://www.youtube.com/watch?v=pC2N_jAEu78
1•oleksg•9m ago•0 comments

Show HN: A branching notebook runtime for AI and humans(written in Rust)

https://github.com/tinelabs/tine
1•thesidsat23•11m ago•0 comments

Books from Unrelated Fields

1•almonerthis•11m ago•0 comments

OpenJDK: Panama

https://openjdk.org/projects/panama/
1•tosh•12m ago•0 comments

Schedule It. Forget It. It Publishes

https://satolocinsight.substack.com/p/schedule-it-forget-it-it-publishes
1•satolocinsight•14m ago•0 comments

What Would You See Changed in Haskell?

https://blog.haskell.org/what-would-you-see-changed-in-haskell/
1•birdculture•14m ago•0 comments

Gender Equality and Work

https://www.oecd.org/en/topics/gender-equality-and-work.html
6•mooreds•14m ago•1 comments

Clockworks: Deterministic controllable time and time-ordered identifiers

https://dexcompiler.com/blog/clockworks
1•skynode•14m ago•0 comments

The Death Clock

https://www.weareinquisitive.com/news/introducing-the-death-clock
1•mooreds•15m ago•0 comments

Show HN: Fabro – open-source dark software factory

https://github.com/fabro-sh/fabro
1•brynary•15m ago•0 comments

The Free Market Lie: Why Switzerland Has 25 Gbit Internet and America Doesn't

https://sschueller.github.io/posts/the-free-market-lie/
21•sschueller•16m ago•8 comments

Your House as a Power Plant with Enphase's Marco Krapels [audio]

https://shows.acast.com/everybody-in-the-pool/episodes/episode-127-enphase
2•mooreds•16m ago•0 comments

Show HN: Sigil – A new programming language for AI agents

1•inerte•17m ago•0 comments

Show HN: Diffvoid.com – private, open source client side text comparison tool

http://diffvoid.com
1•user_timo•18m ago•0 comments

Show HN: macOS PDF Organizer Using Apple Intelligence

https://apps.apple.com/us/app/elephant-folio-pdf-organizer/id6758025984ElephantFolio:PDFOrganizer
1•abu_ameena•19m ago•0 comments

OmniSearch: Fast Windows file search built with Tauri, Rust, and C++

https://github.com/Eul45/omni-search
1•eyuel_engida•20m ago•0 comments

Ask HN: Lightweight GPU job queue for single-node setup?

1•dstrbad•22m ago•0 comments

LibreOffice – Let's put an end to the speculation

https://blog.documentfoundation.org/blog/2026/04/05/lets-put-an-end-to-the-speculation/
10•eisa01•22m ago•0 comments

Music for Programming

https://musicforprogramming.net
2•merusame•22m ago•0 comments

100x Defect Tolerance: How Cerebras Solved the Yield Problem (2025)

https://www.cerebras.ai/blog/100x-defect-tolerance-how-cerebras-solved-the-yield-problem
3•peter_d_sherman•25m ago•0 comments

Samsung Raises DRAM Prices Another ~30% for Q2 2026

https://old.reddit.com/user/BuySellRam/comments/1sd9z9k/samsung_raises_dram_prices_another_30_for...
3•jeffufl•26m ago•1 comments

LLM inference load balancer optimized for AMD Radeon VII GPUs

https://github.com/janit/viiwork
1•velmu•28m ago•0 comments

Show HN: I built a tool to show how much ARR you lose to FX fees

https://fixmyfx.com
1•TaniaBell_PD•34m ago•1 comments