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

In Pursuit of Production Minimalism (2017)

https://brandur.org/minimalism
1•tosh•35s ago•0 comments

Show HN: Responsive Bento Grid implementation using Tailwind CSS (no heavy libs)

https://veloxweb.gumroad.com/l/launch-ui
1•asliper•49s ago•1 comments

Show HN: Claude Skill Editor

https://github.com/mtct/skill-editor
1•mtct88•2m ago•0 comments

Vibe coding is a hobby. Let me explain

https://medium.com/@wob/vibe-coding-is-a-hobby-let-me-explain-a54949c3b455
2•dham•2m ago•0 comments

I Stopped Creating Package.json Scripts

https://benhouston3d.com/blog/stopped-creating-package-json-scripts
2•bhouston•3m ago•0 comments

Show HN: I built an AI video editor around scenes, not timelines

https://www.roanot.com/app/demo/de745846-87e2-4861-88f2-b91fa8f68a55
1•Vagantem•4m ago•1 comments

Scheme implementation as O'Reilly book via Claude Code

https://ezzeriesa.notion.site/Scheme-implementation-as-O-Reilly-book-via-Claude-Code-2ee1308b4204...
1•kurinikku•4m ago•0 comments

Show HN: Osprey API Tester – VS Code API Testing from NestJS Controllers/DTOs

https://github.com/jeremi-24/osprey-api-tester
1•jeremi-24•4m ago•0 comments

Dynamic Load Balancer in Intel Xeon Scalable Processor

https://danglingpointers.substack.com/p/dynamic-load-balancer-in-intel-xeon
1•blakepelton•5m ago•0 comments

Agentic Code Reviewer

https://github.com/richhaase/agentic-code-reviewer
1•richhhh•6m ago•1 comments

Show HN: D-engine – Embeddable Raft consensus for Rust

https://github.com/deventlab/d-engine
1•joshuachi•6m ago•0 comments

Show HN: cm – a TUI to monitor multiple Docker container logs side-by-side

https://github.com/rehrumesh/cm
2•rehrumesh•9m ago•0 comments

Show HN: APIsec MCP Audit – Audit what your AI agents can access

https://github.com/apisec-inc/mcp-audit
1•rajaramr7•10m ago•0 comments

Show HN: Run4ever – a browser-based long-term running progression game

https://run4ever.win
1•marcosme•11m ago•0 comments

Brush.Q: An Articulated Ground Mobile Robot with Compliant Brush-Like Wheels

https://www.mdpi.com/2218-6581/15/1/3
1•PaulHoule•11m ago•0 comments

11-year streak of record global warming continues

https://news.un.org/en/story/2026/01/1166758
2•yusufaytas•12m ago•0 comments

Creating virtual block devices with ublk

https://jpospisil.com/posts/2026-01-13-creating-virtual-block-devices-with-ublk
1•jiripospisil•14m ago•0 comments

Ask HN: Would you trust a new browser security extension in 2025?

1•linklock•14m ago•0 comments

Postgres Serials Should Be Bigint (and How to Migrate)

https://www.crunchydata.com/blog/postgres-serials-should-be-bigint-and-how-to-migrate
1•enz•17m ago•0 comments

Who Owns Your Data?

https://werd.io/who-owns-your-data/
1•benwerd•17m ago•0 comments

Google's AI Overview Has Been Sending Me the Wrong Customers for 6 Months

https://glama.ai/blog/2026-01-20-bad-google-s-ai-overview
3•punkpeye•17m ago•0 comments

AI boom could falter without wider adoption, Microsoft chief Satya Nadella warns

https://www.irishtimes.com/business/2026/01/20/ai-boom-could-falter-without-wider-adoption-micros...
5•cdrnsf•19m ago•1 comments

Parsing Election Results PDFs Using LLMs

https://openelections.net/spsa2026/
2•m-hodges•19m ago•0 comments

Unconventional PostgreSQL Optimizations

https://hakibenita.com/postgresql-unconventional-optimizations
1•haki•20m ago•0 comments

Show HN: Shadow Report – Why your "black box" redactions aren't hiding anything

1•cd_mkdir•20m ago•1 comments

Show HN: Mother MCP – Manage your Agent Skills like a boss-Auto provision skills

https://github.com/dmgrok/mcp_mother_skills
1•DavidGraca•21m ago•0 comments

Minneapolis software engineers mistaken for ICE agents

https://www.foxnews.com/us/minneapolis-software-engineers-mistaken-ice-agents-eating-lunch-harass...
3•DivingForGold•22m ago•0 comments

The Last Algorithm

https://danielmiessler.com/blog/the-last-algorithm
1•zanjani•23m ago•0 comments

Show HN: 8-10x Faster Development with LLM Memory That Persists

https://www.buddhilw.com/posts-output/2026-01-20-hive-mcp/
1•BuddhiLW•24m ago•1 comments

Magnetic nanoparticles fight bone cancer and help healing

https://www.sciencedaily.com/releases/2026/01/260106224627.htm
1•mhb•24m ago•0 comments