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?

How Paris swapped cars for bikes – and transformed its streets

https://www.theguardian.com/world/2026/apr/05/how-paris-swapped-cars-for-bikes-and-remade-its-str...
1•vrganj•1m ago•0 comments

On the brink of disaster

https://www.taxresearch.org.uk/Blog/2026/04/06/on-the-brink-of-disaster/
1•only_in_america•1m ago•0 comments

Number in man page titles e.g. sleep(3)

https://lalitm.com/til-number-in-man-page-titles-e-g-sleep-3/
1•thunderbong•5m ago•0 comments

Verbatim 140W GAN: One of the first chargers with USB PD 3.2 AVS (SPR) support

https://charge-test.com/verbatim-mini-gan-charger-140w-review-one-of-the-first-chargers-with-full...
1•StainX•6m ago•0 comments

Show HN: I built an Open-source Dropbox/Google Drive BOYB(Bring your own bucket)

https://github.com/zmeyer44/Locker
1•Zm44•7m ago•0 comments

Talk about PPU (Parallel Processing Unit) increasing CPU speeds exponentially

https://www.youtube.com/watch?v=ZiQxxzCHLvo
1•openhw•10m ago•0 comments

Industrial Policy for the Intelligence Age

https://openai.com/index/industrial-policy-for-the-intelligence-age/
1•salkahfi•12m ago•0 comments

Avoid Concatenation in Log Statements

https://blog.bonnieeisenman.com/blog/avoid-concatenation-in-log-statements/
1•luu•12m ago•0 comments

Show HN: Beat Darwin

1•ecosystemj•13m ago•0 comments

Show HN: I built lightweight LLM tracing tool with CLI

https://github.com/SKE-Labs/lightrace
1•skele•14m ago•1 comments

GlueClaw: Use Claude subscription in OpenClaw again

https://github.com/zeulewan/glueclaw
1•zeulewan•15m ago•1 comments

Show HN: Browser-based EXIF remover – no upload, runs offline via WASM

https://picshift.app/metadata-remover/
2•pod4g•18m ago•0 comments

Drug safety intelligence API – 1M+ FDA adverse events in one call

https://pharma-signal.com
1•Niteowlpt•20m ago•0 comments

Show HN: I just built a MCP Server that connects Claude to all your wearables

https://pacetraining.co/
1•anton_salcher•22m ago•3 comments

Tips and tricks to avoid cloning in Rust

https://antoine.vandecreme.net/blog/avoiding-clone/
1•avandecreme•25m ago•0 comments

Ask HN: How do you escape golden handcuffs at FAANG?

2•oumua_don17•26m ago•5 comments

RISC-V Linux BusyBox Single Board Notebook

https://tomlarkworthy.github.io/lopebooks/notebooks/@tomlarkworthy_linux-sbc.html
1•tlarkworthy•30m ago•0 comments

Career-Ops: How I Built My Own AI Job Search Tool

https://santifer.io/career-ops-system
1•futurecat•30m ago•0 comments

Making Gamedev Tooling For Windows 3.1 in Turbo C++ [video]

https://www.youtube.com/watch?v=-7mc-D5V4L8
1•xyproto•33m ago•0 comments

Nanoscale Vacuum-Channel Transistor

https://en.wikipedia.org/wiki/Nanoscale_vacuum-channel_transistor
1•akshatjiwan•38m ago•0 comments

Texas Republican Called Out for Sharing AI Rendering of Rescued Soldier

https://www.mediaite.com/media/news/texas-republican-called-out-for-sharing-ai-rendering-of-rescu...
1•01-_-•38m ago•0 comments

Anomaly detection with nothing but Welford's algorithm and a KV store

https://uriv.me/blog/anomaly-detection-with-welford-and-kv
3•birdculture•48m ago•0 comments

All GANs No Brakes

https://mayberay.bearblog.dev/all-gans-no-brakes/
1•mugamuga•50m ago•0 comments

Paramera modified carbon fiber hood

https://www.porsche-km.com/productinfo/192708.html
1•edl8888•55m ago•0 comments

NIMBY Rails

https://store.steampowered.com/app/1134710/NIMBY_Rails/
11•altilunium•56m ago•0 comments

Show HN: Reverse-engineered the FPGA bitstream using Claude Code

https://github.com/14sea/Cyclone_CRAM_Mapper
4•14sea•56m ago•1 comments

Hell Is a World in Which Everybody Writes Like Axios (2022)

https://newrepublic.com/article/167857/axios-smart-brevity-book-hell-world
3•Tomte•56m ago•2 comments

Euro-Office – Your sovereign office

https://github.com/Euro-Office
41•XzetaU8•1h ago•12 comments

College instructor turns to typewriters to curb AI use, teach life lessons

https://apnews.com/article/typewriter-ai-cheating-chatgpt-cornell-ce10e1ca0f10c96f79b7d988bb56448b
2•1vuio0pswjnm7•1h ago•2 comments

Disposable Tools Manifesto

https://blog.vtemian.com/post/disposable-tools-manifesto/
1•vtemian•1h ago•0 comments