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?

QuickTime: The mad dash to build the future of multimedia

https://www.theverge.com/tech/902721/quicktime-history-apple
1•CharlesW•1m ago•0 comments

Denuvo has been broken, company promises countermeasures against new DRM bypass

https://www.tomshardware.com/video-games/pc-gaming/denuvo-has-been-broken-company-promises-counte...
1•LicenseSping•2m ago•1 comments

Company backed by Trump sons to sell interceptors to Gulf states being attacked

https://apnews.com/article/trump-sons-powerus-drone-interceptors-iran-missiles-1d8d858fdad5104a56...
1•petethomas•2m ago•0 comments

Show HN: Centel – Vibe Coding for Professionals

https://usecentel.com/
1•marcel-felix•3m ago•0 comments

NetWatch – terminal network diagnostics release 0.9.0

https://github.com/matthart1983/netwatch
1•matthart1983•3m ago•0 comments

First lab-grown T-Rex leather handbag unveiled in Amsterdam could fetch €575,000

https://nltimes.nl/2026/04/02/worlds-first-lab-grown-t-rex-leather-handbag-unveiled-amsterdam-fet...
1•CharlesW•3m ago•0 comments

rpg: A modern psql-compatible Postgres terminal and TUI written in Rust

https://github.com/NikolayS/rpg
1•tanelpoder•5m ago•0 comments

Specgetty

https://github.com/mipmip/specgetty
1•mipselaer•5m ago•1 comments

Memo: A language that remembers only the last 12 lines of code

https://danieltemkin.com/Esolangs/Memo/
2•notem•5m ago•0 comments

Blue Owl Investors Seek to Pull $5.4B from Two Private-Credit Funds

https://www.wsj.com/finance/investing/blue-owls-36-billion-private-credit-fund-hit-by-22-withdraw...
1•JumpCrisscross•6m ago•0 comments

Podroid: Run Linux Containers on Android

https://github.com/ExTV/Podroid
1•thunderbong•9m ago•0 comments

Knightcore · Living Dungeon – Autonomous Ecosystem Update

https://peacebinflow.itch.io/knightcore-pixel-monastery/devlog/1478391/knightcore-living-dungeon-...
2•PEACEBINFLOW•10m ago•0 comments

Proton Workspace: An encrypted suite for team collaboration

https://proton.me/business/blog/proton-workspace
4•teekert•12m ago•0 comments

Show HN: OpenVole – VoleNet Distributed AI Agent Networking

1•flabberghasted•13m ago•1 comments

Proton Meet, Talk in total privacy

https://meet.proton.me/
5•teekert•14m ago•0 comments

Show HN: A glitchy browser card game – does this feel playable?

https://play.latestage.app
1•harbinger-sec•15m ago•0 comments

Trump: "We're fighting wars. We can't take care of day care"

https://www.cnn.com/2026/04/02/politics/donald-trump-iran-war-daycare
2•dryarzeg•16m ago•2 comments

FDA Peptide Reclassification 2026: Which Peptides Are Coming Back

https://peptide-db.com/guides/fda-peptide-reclassification-2026
1•walterbell•17m ago•0 comments

I built an Open-source Gmail MCP server: multi-account support, read/write

https://github.com/navbuildz/gmail-mcp-server
1•navbuildz•22m ago•0 comments

CUDA Tile is the biggest GPU programming shift in 20 years

https://pub.towardsai.net/cuda-tile-gpu-programming-model-1a4bc93ae9b4
1•Aedelon•22m ago•0 comments

Do You Need to Tune Postgres Vacuum?

https://www.snowflake.com/en/engineering-blog/tuning-postgres-vacuum/
1•craigkerstiens•22m ago•0 comments

BlackSwanX,174 AI agents predict the future by fighting each other,run on Ollama

https://github.com/Kalki-M/BlackSwanX
1•Kalki-M•27m ago•0 comments

New IRIX Emulator (I am not the author)

https://github.com/techomancer/iris
1•ThatGuyRaion•30m ago•0 comments

BitKiln – Turn Photos into Pixel Art and ASCII Art

https://bitkiln.io/
2•tsumnia•32m ago•2 comments

Data roundup: Which code models performing best this month (April 2026)?

https://bill.harding.blog/2026/04/02/which-models-are-best-this-month-april-2026/
1•wbharding•33m ago•0 comments

Stress internalization top risk for cognitive decline in older Chinese in US

https://www.sciencedirect.com/science/article/pii/S2274580725002134
1•bookofjoe•33m ago•0 comments

Build an OpenClaw Alternative with Arcade + Claude Code

https://www.arcade.dev/blog/secure-openclaw-alternative-arcade-claude-code/
1•manveerc•39m ago•0 comments

Rewrite of the Claw Code project aimed at significantly reducing token usage

https://github.com/deepreinforce-ai/Tokenless-Claw-Code
2•kathyxiao•40m ago•1 comments

Claude Code devs: use previos model, compact at 200k tokens to avoid usage limit

https://twitter.com/lydiahallie/status/2039800718371307603
3•troupo•42m ago•1 comments

Backblaze Performance Stats Q1 2026

https://www.backblaze.com/blog/backblaze-performance-stats-q1-2026/
2•ingve•45m ago•0 comments