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?

TikTok alternative UpScrolled surges amid censorship fears

https://restofworld.org/2026/upscrolled-tiktok-competitor-palestine-censorship/
1•stareatgoats•24s ago•0 comments

Show HN: A header-only C++20 compile-time assembler for x86/x64 instructions

https://github.com/mahmoudimus/static_asm
1•mahmoudimus•26s ago•0 comments

Show HN: ProductSignals API – product reliability signals from public sources

https://github.com/ulissse/productsignalsapi-examples
1•analyses-web•1m ago•0 comments

The longest possible chess game

https://wismuth.com/chess/longest-game.html
1•ntnbr•2m ago•0 comments

Clipper Chip

https://en.wikipedia.org/wiki/Clipper_chip
2•GaryBluto•4m ago•0 comments

Casio's expressive guitar strap controller was inspired by a chopstick case

https://cdm.link/casios-expressive-guitar-strap-controller/
1•glitcher•5m ago•0 comments

Social media addiction trials unsealed docs show platforms designed to hook kids

https://dispatch.techoversight.org/historic-social-media-addiction-trials-begins-jury-selection-u...
2•speckx•6m ago•0 comments

Hexagonal Grids

https://www.redblobgames.com/grids/hexagons/
1•vinhnx•7m ago•0 comments

Sometimes Your Job Is to Stay the Hell Out of the Way

https://randsinrepose.com/archives/sometimes-your-job-is-to-stay-the-hell-out-of-the-way/
2•vinhnx•7m ago•0 comments

Bitbucket Down?

https://status.atlassian.com
2•CrzyLngPwd•7m ago•2 comments

Remote Code Execution in Command&Conquer: Generals

https://www.atredis.com/blog/2026/1/26/generals
2•jordan9001•8m ago•0 comments

Show HN: I built a mesh network for Coding agent sessions called Repowire

https://github.com/prassanna-ravishankar/repowire
4•nomadic-coder•8m ago•0 comments

Blocking Claude

https://aphyr.com/posts/403-blocking-claude
3•vinhnx•8m ago•0 comments

Asthma-related depression may be biologically distinct from primary depression

https://medicalxpress.com/news/2026-01-asthma-depression-biologically-distinct-primary.html
2•PaulHoule•8m ago•0 comments

SQLite in Production? Not So Fast for Complex Queries

https://yyhh.org/blog/2026/01/sqlite-in-production-not-so-fast-for-complex-queries/
2•marcobambini•9m ago•1 comments

It is now 85 seconds to midnight

https://thebulletin.org/doomsday-clock/2026-statement/
4•gbugniot•9m ago•0 comments

Moltbot-safe: a minimal, permissioned, sandboxed execution engine for AI agents

https://github.com/titanicprime/moltbot-safe
2•andredelima•10m ago•1 comments

Show HN: LZW-X – improving classic LZW compression with edit-scripts

https://github.com/DO-SAY-GO/LZW-X
1•keepamovin•11m ago•1 comments

AI Software as Props for Social Media Creators

https://seanthielen.substack.com/p/ai-software-as-props-for-social-media
1•sthielen•11m ago•0 comments

Beyond FTS5: Building Transactional Full-Text Search in TursoDB

https://turso.tech/blog/beyond-fts5
1•cyndunlop•12m ago•0 comments

Kite – Stripe checkout with automatic PPP pricing by country

1•DennisLH•13m ago•0 comments

100% open source MCP server for PostgreSQL – beta 2 out now, beta 3 on the way

https://www.pgedge.com/blog/what-s-new-in-the-pgedge-postgres-mcp-server-beta-2-and-beta-3
1•pgedge_postgres•13m ago•0 comments

There is no secure AI enclave

https://johncodes.com/archive/2026/01-28-there-is-no-secure-ai-enclave/
1•jpmcb•15m ago•0 comments

Monoliths were faster when humans were the bottleneck. AI changes that

https://jpaldea.substack.com/p/the-end-of-the-monolith-argument
2•jpaldea•16m ago•3 comments

Superpowers – An agentic skills framework for Claude Code, Codex, OpenCode

https://github.com/obra/superpowers
1•rob•17m ago•0 comments

Celibacy taught me I'm too clever to find love

https://www.telegraph.co.uk/news/2026/01/27/too-clever-to-find-love/
2•mraniki•18m ago•1 comments

Continued influence of AI-generated deepfake vids despite transparency warnings

https://www.nature.com/articles/s44271-025-00381-9
1•bookofjoe•20m ago•0 comments

Show HN: I gamified a productivity app to help my ADHD friends get things done

https://www.tryhypermonkey.com/
1•jcylim21•20m ago•0 comments

Paty: The most human-like AI agent you'll ever use

https://github.com/gjtorikian/paty
1•gjtorikian•21m ago•0 comments

Despite AI chip boom and record high stock price, ASML to lay off employees

https://www.tomshardware.com/tech-industry/asml-to-lay-off-employees-despite-ai-chip-boom-and-rec...
2•speckx•21m ago•0 comments