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?

Europe's slow electrification is a 'major mistake', warns IEA chief

https://www.ft.com/content/fbeb7df0-41fb-4981-8d78-01c7a95d3ed6
1•JumpCrisscross•1m ago•0 comments

Making a Contribution: The Story of EBR-II [video]

https://www.youtube.com/watch?v=Xf7OtFIA6LY
1•mpweiher•4m ago•0 comments

HuggingNews

https://huggingnews.com/
1•ilreb•5m ago•0 comments

Decommissioning the original Model S and X assembly line in just 46 days

https://twitter.com/gigafactories/status/2075636160508866562
1•simonebrunozzi•7m ago•0 comments

What's the best way to do authentication in modern applications

https://neciudan.dev/most-secure-way-to-store-auth-token
1•freediver•8m ago•0 comments

Open source retro futuristic pi camera

https://old.reddit.com/r/raspberry_pi/comments/1urysi6/four_months_ago_i_showed_my_retrofuturisti...
1•ludkiller•16m ago•2 comments

Show HN: KRNL – a quieter browser for the essence of the web

1•keepamovin•18m ago•0 comments

Create high-converting AI UGC ads in minutes

https://aiugcads.net/
1•mrguo•20m ago•0 comments

Show HN: Krbn, a pencil-style 3D renderer with SVG output

https://github.com/vpalos/Krbn
1•vpalos•26m ago•0 comments

The Metaphysics (350 BCE)

https://classics.mit.edu/Aristotle/metaphysics.1.i.html
1•andsoitis•30m ago•0 comments

Meta Deletes Face-Recognition System from Smart Glasses App After Wired Report

https://www.wired.com/story/meta-removes-face-recognition-code-meta-ai-app-smart-glasses/
1•1vuio0pswjnm7•32m ago•0 comments

Hasharot – Control a Claude Code agent on your machine from Telegram

https://github.com/Mamasodikov/hasharot
1•mamasodikov•37m ago•0 comments

Why Rodents Can't Throw Up, in Case You Were Wondering

https://www.smithsonianmag.com/smart-news/why-rodents-cant-throw-up-in-case-you-were-wondering-25...
1•thunderbong•38m ago•0 comments

Show HN: isitsecure - 1-command SAST & DAST & LLM security scanner for web apps

https://github.com/jaurakunal/isitsecure
2•kunaljaura•38m ago•0 comments

The Conversation We're Not Having About AI in Peer Review

https://cabird.com/ide/posts/ai-in-peer-review
1•azhenley•41m ago•0 comments

Why is (the word game) Lingo 'lightning in a bottle'? (2026)

https://icely.neocities.org/articles/lingo-lightning-in-a-bottle
1•icely•42m ago•0 comments

Parents' Phone Addiction Affects Bond with Kids, New Study Finds

https://www.bloomberg.com/news/articles/2026-07-08/parents-phone-addiction-affects-bond-with-kids...
1•1vuio0pswjnm7•47m ago•0 comments

Show HN: River Rescue – Game mechanic for 3yo

https://www.pip.quest/
1•satellite2•48m ago•2 comments

Crypto Criminal Accused of Crypto Crimes Again, While in Jail

https://www.bloomberg.com/news/articles/2026-07-09/crypto-criminal-accused-of-crypto-crimes-again...
1•1vuio0pswjnm7•51m ago•0 comments

Self-replicating spacecraft, a.k.a. von Neumann probes

https://en.wikipedia.org/wiki/Self-replicating_spacecraft
1•gurjeet•52m ago•0 comments

Depone – Delete legacy require_once with proof, not guesswork

https://github.com/lll-lll-lll-lll/depone
2•www_lll•53m ago•0 comments

AI Limit, Social Divide

https://valand.dev/blog/post/ai-limit-divide
1•valand•56m ago•0 comments

Nectar: A programming language that compiles to WebAssembly

https://github.com/HibiscusConsulting/nectar-lang
2•handfuloflight•56m ago•0 comments

Vermont becomes first US state to ban paraquat herbicide over Parkinson's fears

https://www.theguardian.com/environment/2026/may/26/vermont-paraquat-weedkiller-ban
3•xoa•57m ago•0 comments

Show HN: Files402 – share or sell a folder online from $1/mo

https://files402.net/
1•mannders•58m ago•0 comments

The Vintage Beauty of Soviet Control Rooms

https://designyoutrust.com/2018/01/vintage-beauty-soviet-control-rooms/
3•mvdtnz•58m ago•0 comments

Show HN: Numbergram – Make 10 from 4 numbers

https://numbergram.app
1•zmilou•1h ago•1 comments

Show HN: Paste a URL, get an honest answer to "can I build this with a prompt?"

https://onepromptai.app
1•pro_methe5•1h ago•1 comments

Cycle Double Cover Conjecture Proof Using 5.6 Sol Ultra

https://twitter.com/__eknight__/status/2075643450196971805
1•virgildotcodes•1h ago•1 comments

EPA to open habitats of endangered species to logging and mining

https://www.theguardian.com/us-news/2026/jul/10/epa-rollback-endangered-habitats-logging-mining
2•Jimmc414•1h ago•1 comments