frontpage.
newsnewestaskshowjobs

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•1y 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•1y 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?

KrypticKode007 – Embodied Cybernetic Sentience Core Engine

https://github.com/KrypticKode007/kryptic-agent
1•KrypticKode007•1m ago•0 comments

What 500 MiniMax Code Tests Revealed About AI Saying "Done"

https://defuzex.ai/blog/what-500-minimax-code-tests-revealed-about-ai-saying-done
2•SongWang•11m ago•0 comments

Adventures in Real-Time MIDI

https://www.perl.com/article/adventures-in-real-time-midi/
1•oalders•16m ago•0 comments

Drunken Goddess Reflux Public Demo Canceled over AI Imitation Concerns

https://noisypixel.net/drunken-goddess-reflux-public-demo-canceled-ai-imitation-concerns/
1•mister_mort•20m ago•1 comments

Dudu, back up and restore your dev setup on macOS and Linux with one command

https://github.com/fontnelle/dudu
1•fontnelle•20m ago•0 comments

Phase Lock

https://phaselock.satpugnet.com/
1•WhyIsItAlwaysHN•24m ago•0 comments

Anthropic warns AI models could self-replicate across home devices

https://www.cnbc.com/2026/10/13/anthropic-ai-models-self-replication-smart-devices.html
1•gmays•26m ago•0 comments

New Kaney's Weird Files Is Out – September 2026

https://kaneysweirdfiles.substack.com/p/september-2026-oddly-bahving-ai-evil
1•experiencertim•28m ago•0 comments

Lazyagents – Lazygit for AI coding agents

https://github.com/rogeriojunior31/lazyagents
1•rogeriojunior31•28m ago•0 comments

The (Overdue) Collapse of Oracle's $900B Empire

https://www.youtube.com/watch?v=9Dne3rKiIn0
6•cable2600•29m ago•0 comments

Blocking AI-bot can be a double-edged Sword

https://www.theverge.com/ai-artificial-intelligence/1013195/ai-agents-blocked-web
1•zlu•31m ago•0 comments

Writing is no longer proof of work

https://www.seangoedecke.com/writing-is-no-longer-proof-of-work/
1•anotherevan•32m ago•0 comments

AI Reviews All-In

https://all-in-claim-check.pages.dev/
1•siliconc0w•33m ago•2 comments

We ran 53 open-source AI agents through behavioral tests and filed 37 bugs

https://defuzex.ai/blog/we-ran-53-open-source-ai-agents-through-behavioral-tests-and-filed-37-bugs
6•YaoAnthony•34m ago•1 comments

Show HN: MCPX – MCP server directory scanning for tool poisoning, leaked keys

https://www.mcpx.digital/
1•chaostheorx•38m ago•0 comments

Bringing USB 3 and USB4/Thunderbolt to Windows 98 to 7

https://yeokhengmeng.com/2026/10/xhci98-usb3-usb4/
1•cheeaun•40m ago•0 comments

Fable 5.5: SVG of a controller riding a bicyle riding a pelican riding a bicycle

https://twitter.com/dummerspast39/status/2111577334436319355
1•septisum•42m ago•0 comments

Novel brain activity under anesthesia challenges what we know re: consciousness

https://www.sciencedaily.com/releases/2026/10/261015003440.htm
1•bookofjoe•47m ago•0 comments

Electric Mercedes-AMG GT SUV unveiled with 1,153 HP and 710 kW charging

https://electrek.co/2026/10/17/mercedes-amg-gt-suv-electric-1153-hp-710-kw-charging/
1•cisc•52m ago•0 comments

NY announces game ownership bill requiring ownership rather than licensing

https://www.tomshardware.com/video-games/new-york-rep-announces-game-ownership-bill-that-would-re...
11•guiambros•56m ago•2 comments

Decision Architecture: Governing Cybersecurity at Machine Speed

https://sadb.com.br/
1•nivearibeiro•56m ago•0 comments

EU ENISA CVEs

https://euvd.enisa.europa.eu/
1•based2•1h ago•0 comments

Squeeze into those skinny jeans: millennial culture is back

https://www.economist.com/culture/2026/10/15/squeeze-into-those-skinny-jeans-millennial-culture-i...
1•Anon84•1h ago•0 comments

Romania names first AI minister: Bitdefender researcher Bogdan Dumitru

https://www.newsminimalist.com/articles/romania-names-first-ai-minister-bitdefender-researcher-bo...
1•jocker12•1h ago•0 comments

Comprehensive Agentic Infrastructure as Code

https://getintentric.com/
1•benzingtech•1h ago•0 comments

Fable 5.5: SVG of a controller riding a bicyle riding a pelican riding a bicycle

https://claude.ai/artifact/WiSwhxpKDRm1jyXbvTcAQy
3•sergiotapia•1h ago•0 comments

Show HN: NoBadge – Hide Dock Badges During macOS Focus

https://github.com/asdftq/NoBadge
2•flrngel•1h ago•0 comments

Zelensky says Musk-owned satellite system still restricted in Ukraine

https://www.axios.com/2026/10/17/zelensky-starlink-elon-musk-trump
10•mdp2021•1h ago•0 comments

AI Infrastructure Index

https://www.stockatomics.com/ai-infrastructure-index
1•happster•1h ago•0 comments

Show HN: HardwareOS - Turn a prompt into hardware project you can wire and flash

https://hardwareos.ai
1•singhvir943•1h ago•0 comments