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

Practical Electronics Course

https://practicingelectronics.com/practical-electronics-course/
2•ofrzeta•22m ago•2 comments

Humanoid Robot Actuators: The Complete Engineering Guide

https://www.firgelli.com/pages/humanoid-robot-actuators
2•ofrzeta•27m ago•0 comments

IPv4 Tools – IP Lookup, PTR Search, CIDR, ASN

https://worldip.io/tools
1•tuxxin•29m ago•0 comments

Show HN: Maxcred – app to maximise your credit card rewards

https://maxcred.vercel.app
1•theoo21•32m ago•0 comments

BrowserQuest – Mozilla's HTML5 MMO is back

https://korben.info/browserquest-mmo-mozilla-html5-retour.html
3•threejin•32m ago•1 comments

I Automate Everything

https://effective-programmer.com/how-i-actually-automate-everything-0d97ed624a34?sk=f8a15ad7e32cd...
1•naveed125•37m ago•1 comments

StartupLaunchPage – One Page 1500 Fixed Boxes Checkbox Puzzle Game

https://startuplaunchpage.com
1•vnyarongi•38m ago•0 comments

Show HN: TTSC – TypeScript-Go compiler and runner with transform plugins

https://github.com/samchon/ttsc
1•autobe•43m ago•0 comments

Entrepreneurs Flocked to Colorado. Now Red Tape Is Driving Some Away

https://www.wsj.com/business/entrepreneurs-flocked-to-colorado-now-red-tape-is-driving-some-away-...
2•bookmtn•43m ago•2 comments

Real Linux in a Browser Tab

https://linuxontab.com/
1•kilian-ai•44m ago•0 comments

The Scooter and the Bike

https://maxmautner.com/2026/04/12/scooter-vs-bike.html
1•mslate•1h ago•0 comments

HyperList: A powerful TUI for creating, editing, and managing HyperLists

https://github.com/isene/hyperlist
2•thunderbong•1h ago•0 comments

LegalEase – plain-English incorporation guidance for Canadian founders

https://legalease.dev/legalease.dev/
1•margikoca•1h ago•0 comments

The Tech Stack in 2026 (pic)

https://i.imgur.com/w8Ziffp.jpeg
2•ivewonyoung•1h ago•0 comments

Spirit Airlines shuts down; says it can't keep up with higher oil prices

https://apnews.com/article/spirit-airlines-trump-bailout-bankruptcy-37a4818e1b71c0905d022f669d85948c
2•ZeidJ•1h ago•1 comments

Big Tech cut 80k jobs, blamed AI; experts say firms are overstaffed 25%-75%

https://finance.yahoo.com/sectors/technology/articles/big-tech-cut-80-000-211500038.html
1•ZeidJ•1h ago•1 comments

Show HN: Sync agent skills across devices, projects or teams

https://privateaiskills.com/
1•arewethereyeta•1h ago•0 comments

Cozy.Talk – Old web inspired discussion community

https://cozy.talk/
2•rickcarlino•1h ago•0 comments

Ex-DeepMind David Silver Raises $1.1B for AI Startup Ineffable

https://www.cnbc.com/2026/04/27/deepmind-ineffable-intelligence-record-seed-funding-nvidia-google...
2•gmays•1h ago•0 comments

Coffee appears to rewire the gut-brain connection

https://www.sciencedaily.com/releases/2026/05/260502233911.htm
12•loh•1h ago•5 comments

Show HN: Interactive Marimo Moss Ball

https://github.com/ledhieu/imoss
1•ldhieu•1h ago•0 comments

Nerves in Skin Can Slow Melanoma Growth

https://news.weill.cornell.edu/news/2026/04/nerves-in-skin-can-slow-melanoma-growth
1•gmays•1h ago•0 comments

Ask HN: Do you feel reading AI generated readme tiring?

4•maytc•1h ago•2 comments

Verleer – Learn a language from any content

https://verleer.com
1•CallMePapi-_-•1h ago•0 comments

Pilots Shut Off Both Engines Before China Eastern 737 Crash

https://viewfromthewing.com/pilots-shut-off-both-engines-before-china-eastern-737-crash-china-cit...
3•qsi•2h ago•5 comments

Letters from Steve

https://davidgelphman.wordpress.com/2013/03/29/2-letters-from-steve/
2•prawn•2h ago•0 comments

ChatGPT Wrestles with Its Most Chilling Conversation: How Do I Plan an Attack?

https://www.wsj.com/us-news/chatgpt-mass-shooting-openai-78a436d1
2•Brajeshwar•2h ago•2 comments

OpenAI Codex system includes explicit directive to "never talk about goblins"

https://arstechnica.com/ai/2026/04/openai-codex-system-prompt-includes-explicit-directive-to-neve...
4•randycupertino•2h ago•3 comments

Checkpoint/Restore in Userspace (CRIU)

https://criu.org/Main_Page
1•htfy96•2h ago•0 comments

OpenJDK 25 Security Update Released

https://tux.re/forum/viewtopic.php?t=222
2•sys3000•2h ago•0 comments