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

Fishing crews in the Atlantic keep accidentally dredging up chemical weapons

https://arstechnica.com/health/2026/03/fishing-crews-in-the-atlantic-keep-accidentally-dredging-u...
1•jnord•36s ago•0 comments

The National Videogame Museum Has Acquired the Mythical Nintendo PlayStation

https://www.engadget.com/gaming/the-national-videogame-museum-has-acquired-the-mythical-nintendo-...
1•breve•3m ago•0 comments

C# Strings Silently Kill Your SQL Server Indexes in Dapper

https://consultwithgriff.com/dapper-nvarchar-implicit-conversion-performance-trap
1•PretzelFisch•4m ago•0 comments

Show HN: I open-sourced my Steam game, 100% written in Lua, engine is also open

https://github.com/willtobyte/reprobate
1•delduca•4m ago•0 comments

The White House: Touchdown

https://twitter.com/WhiteHouse/status/2030051395294941427
1•TheAlchemist•5m ago•2 comments

Capability-Tiered AI Governance Architecture (CEGP)

https://github.com/babyblueviper1/ai-governance-architecture
2•babyblueviper1•7m ago•1 comments

A new chapter for the Nix language, courtesy of WebAssembly

https://determinate.systems/blog/builtins-wasm/
1•birdculture•8m ago•0 comments

Shipping a Button in 2026 [video]

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

Show HN: Stream-native AI that never sleeps, an alternative to OpenClaw

https://github.com/timeplus-io/PulseBot
1•gangtao•15m ago•0 comments

Show HN: Flompt – Visual prompt builder that decomposes prompts into blocks

https://github.com/Nyrok/flompt
1•hkonte•15m ago•0 comments

FBI investigating 'suspicious' cyber activity on system holding wiretaps

https://abcnews.com/Technology/wireStory/fbi-investigating-suspicious-cyber-activity-system-holdi...
1•campuscodi•16m ago•0 comments

Show HN: Key rotation for LLM agents shouldn't require a proxy

https://github.com/HalfEmptyDrum/Key-Carousel
1•EmptyDrum•16m ago•0 comments

Device that can extract 1k liters of clean water a day from desert air

https://www.tomshardware.com/tech-industry/device-that-can-extract-1-000-liters-of-clean-water-a-...
3•PaulHoule•19m ago•0 comments

Show HN: Sqry – semantic code search using AST and call graphs

https://sqry.dev
2•verivusai•19m ago•0 comments

The Window Chrome of Our Discontent

https://pxlnv.com/blog/window-chrome-of-our-discontent/
1•zdw•21m ago•0 comments

When Batteries Heat Up, This Membrane "Sweats" It Out

https://axial.acs.org/nanoscience/when-batteries-heat-up-this-membrane-sweats-it-out
1•geox•21m ago•0 comments

Show HN: Stratum - a pure JVM columnar SQL engine using the Java Vector API

https://datahike.io/stratum/
1•whilo•22m ago•1 comments

Wild crows in Sweden help clean up cigarette butts

https://www.samodobrevijesti.com/en/news/wild-crows-in-sweden-help-clean-up-cigarette-butts/
10•jhncls•22m ago•0 comments

Show HN: BLOBs in MariaDB's Memory Engine – No More Disk Spills for Temp Tables

https://jira.mariadb.org/browse/MDEV-38975
1•arcivanov•25m ago•1 comments

Tip me, my life depends on it (2021)

https://idiallo.com/blog/tip-me
2•foxfired•26m ago•0 comments

Show HN: OculOS – Give AI agents control of your desktop via MCP

https://github.com/huseyinstif/oculos
1•stif1337•27m ago•0 comments

New Strides Made on Deceptively Simple 'Lonely Runner' Problem

https://www.quantamagazine.org/new-strides-made-on-deceptively-simple-lonely-runner-problem-20260...
1•ibobev•30m ago•0 comments

Ask HN: Why is Pi so good (and some observations)

1•ashersopro•34m ago•0 comments

Show HN: Speclint – OS spec linter for AI coding agents

https://github.com/speclint-ai/speclint
1•dnielsen1031•34m ago•1 comments

Qwen3.5-35B – 16GB GPU – 100T/s with 120K context AND vision enabled

https://github.com/willbnu/Qwen-3.5-16G-Vram-Local
1•willfinger•36m ago•1 comments

What Did Ilya See?

https://www.youtube.com/watch?v=glWvwvhZkQ8
2•pferdone•36m ago•0 comments

Rust Actor Framework Playground

https://knowledge.dev/playgrounds/rust-actor-framework
1•deniskolodin•36m ago•0 comments

Show HN: mTile – native macOS window tiler inspired by gTile

https://github.com/protortyp/mTile
1•protortyp•38m ago•0 comments

Show HN: Personalized financial literacy book for your kid

https://cointales.ai/en/create-your-book
1•mhalifax•42m ago•5 comments

Ask HN: Has anyone built an autonomous AI operator for their side projects?

2•rosasolana•43m ago•0 comments