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?

Modern, Simple, Web Framework in C. REST, Templates, SSL, Metrics

https://github.com/briandowns/libpapago
1•ieska328•4m ago•0 comments

Rootless virtual machines with KVM and QEMU (2024)

https://developers.redhat.com/articles/2024/12/18/rootless-virtual-machines-kvm-and-qemu
1•adityaathalye•9m ago•0 comments

A suspect is in custody after Trump is rushed from correspondents' dinner

https://www.npr.org/2026/04/25/nx-s1-5799544/trump-white-house-correspondents-dinner
2•qmr•14m ago•0 comments

The American Wealth Curve: How the Gap Widens 8x Between Age 25 and 65

https://efficientdollar.com/blog/wealth-curve-by-age/
2•lundj•17m ago•0 comments

Aube – a fast Node.js package manager

https://aube.en.dev
1•microflash•17m ago•0 comments

How to train your brain to see possibility instead of doom

https://www.theguardian.com/books/2026/apr/19/how-to-train-your-brain-to-see-possibility-instead-...
2•1659447091•25m ago•0 comments

Revocation

https://www.potaroo.net/ispcol/2026-04/revocation.html
1•aragilar•29m ago•0 comments

First Paid Subscribers on Mymarks.net

https://mymarks.net/
2•shozzipen•33m ago•0 comments

Simple Sabotage of Agents

https://alexschroeder.ch/view/2026-03-12-agent-sabotage
1•Tallain•34m ago•0 comments

AGPLv3§74 Empowers Users to Thwart Badgeware Like OnlyOffice

https://sfconservancy.org/blog/2026/apr/16/badgeware-onlyoffice-nextcloud-affero-gpl/
14•pabs3•42m ago•0 comments

I Got 122 World Records to Prove a Point [video]

https://www.youtube.com/watch?v=mVH7OPx4QZU
1•reader9274•45m ago•0 comments

French tax official sold crypto investors' addresses: kidnappings followed

https://twitter.com/MarioNawfal/status/2047773069607854512
2•MrBuddyCasino•46m ago•0 comments

Stt.ai MCP Server

https://pypi.org/project/sttai-mcp/0.1.0/
1•nadermx•57m ago•0 comments

Consumer routers hacked by Russia's military

https://arstechnica.com/security/2026/04/russias-military-hacks-thousands-of-consumer-routers-to-...
1•pabs3•1h ago•0 comments

What are some unforeseen / elusive edge cases you have seen in your career?

https://www.reddit.com/r/ExperiencedDevs/s/FIQYb1Fg8x
2•rainhacker•1h ago•0 comments

Show HN: Browse GitHub repos in Emacs without cloning

https://github.com/agzam/remoto.el
3•iLemming•1h ago•5 comments

Maine's governor vetoes data center moratorium

https://techcrunch.com/2026/04/25/maines-governor-vetoes-data-center-moratorium/
1•SilverElfin•1h ago•0 comments

All About USB-C: Resistors and Emarkers (2023)

https://hackaday.com/2023/01/04/all-about-usb-c-resistors-and-emarkers/
1•walterbell•1h ago•0 comments

I asked my local LLM to add 23 numbers and got seven wrong answers

https://viggy28.dev/article/local-llm-seven-wrong-answers/
2•vira28•1h ago•1 comments

Godot 4.7 Beta with HDR Output, Ray-Tracing Improvements and Editor Enhancements

https://www.phoronix.com/news/Godot-4.7-Beta
6•shpat•1h ago•1 comments

White House Correspondents' Dinner shooting suspect worked as California teacher

https://www.cnn.com/2026/04/26/us/white-house-correspondents-dinner-shooter-teacher-invs
3•canucker2016•1h ago•2 comments

Show HN: RewardGuard – detect reward hacking in RL training loops

https://github.com/Giovan321/Reward-Guard
1•Giovan321•1h ago•1 comments

Electric trucks in China have ditched diesel, now they're ditching the driver

https://thedriven.io/2026/04/25/electric-trucks-in-china-have-already-ditched-diesel-now-theyre-d...
2•decimalenough•1h ago•0 comments

Show HN: Track official AI company news and blogs in your Chrome side panel

https://chromewebstore.google.com/detail/bigtech-ai-news/aehmpingbppjnlppejppiifmijdjjiej
1•tughvn•1h ago•1 comments

Ask HN: Is "agentic" coding working for everyone except me?

1•canttestthis•1h ago•3 comments

Maine governor blocks first US state freeze on new data centers

https://www.reuters.com/legal/litigation/maine-governor-rejects-first-us-state-freeze-new-data-ce...
2•rmason•1h ago•0 comments

Show HN: I made a simple bill of sale maker

https://www.makebillofsale.com/
1•atharvtathe•1h ago•0 comments

What the FCC router ban means for FOSS

https://sfconservancy.org/blog/2026/apr/02/fcc-router-ban/
16•pabs3•1h ago•5 comments

MrBeast Is What Marx Warned Us About [video]

https://www.youtube.com/watch?v=-Hv-be_KdE0
10•xbmcuser•1h ago•0 comments

Show HN: I built a Shadcn based alternative to shields.io

https://github.com/jal-co/shieldcn/
1•justinlevine•1h ago•1 comments