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?

Show HN: Nobulex – Cryptographic receipts for AI agent actions

https://github.com/arian-gogani/nobulex
1•arian_•57s ago•0 comments

Meta to start capturing employee mouse movement, keystrokes for AI training data

https://tech.yahoo.com/ai/meta-ai/articles/exclusive-meta-start-capturing-employee-162745587.html
1•louiereederson•1m ago•0 comments

A Periodic Map of Cheese

https://cheesemap.netlify.app/
1•sfrechtling•2m ago•0 comments

I Feel So Sorry for My A.I. Sunglasses

https://www.nytimes.com/2026/04/14/magazine/ai-sunglasses-meta-zuckerberg.html
1•lxm•2m ago•0 comments

Deep Research Max: a step change for autonomous research agents

https://blog.google/innovation-and-ai/models-and-research/gemini-models/next-generation-gemini-de...
1•meetpateltech•3m ago•0 comments

Google's Internal Politics Leave It Playing Catch-Up on AI Coding

https://www.bloomberg.com/news/articles/2026-04-21/google-struggles-to-gain-ground-in-ai-coding-a...
1•htrp•4m ago•0 comments

Practical Engineering: The Wild Story of the Teton Dam Failure

https://practical.engineering/blog/2026/4/21/the-wild-story-of-the-teton-dam-failure
1•crescit_eundo•5m ago•0 comments

Nvidia OpenShell: safe, private runtime for autonomous AI agents

https://github.com/nvidia/openshell
1•pretext•5m ago•0 comments

Hampshire College Will Close Amid Student Enrollment Declines

https://www.nytimes.com/2026/04/14/us/hampshire-college-closing-amherst-massachusetts-enrollment....
1•lxm•5m ago•0 comments

A collection of the best SVG images of pelicans riding bicycles

https://github.com/scosman/pelicans_riding_bicycles
1•zdw•6m ago•0 comments

Microsoft lowers the price of Game Pass subscriptions

https://news.xbox.com/en-us/2026/04/21/xbox-game-pass-update/
1•haunter•6m ago•0 comments

Euphony: OSS tool for visualizing chat data and Codex session logs

https://openai.github.io/euphony/
2•pretext•7m ago•0 comments

The Expanding Pie (and the Cleanup Bill)

https://matthewsinclair.com/blog/0197-the-expanding-pie-and-the-cleanup-bill
1•mooreds•7m ago•0 comments

The road to useful quantum computing applications

https://blog.google/innovation-and-ai/technology/research/useful-quantum-computing-applications/
1•pretext•9m ago•0 comments

Cppreference.com has completed their migration and is no longer read-only

https://isocpp.org/blog/2026/04/announcement-cppreference.com-update
2•jjmarr•10m ago•0 comments

Deleteduser.com –A $15 PII Magnet

https://mike-sheward.medium.com/deleteduser-com-a-15-pii-magnet-c4396eb21061
1•ndr•10m ago•1 comments

Measure twice, cut once: How CodeRabbit built a planning layer on Claude

https://www.coderabbit.ai/blog/how-coderabbit-built-a-planning-layer-on-claude
1•dmkravets•11m ago•0 comments

Letterpaths – free software for teaching cursive writing

https://www.robinlinacre.com/letterpaths_blog/
1•RobinL•12m ago•0 comments

Google Apps Script Uptime

https://www.google.com/appsstatus/dashboard/products/tjQKAokSTcX1h4huHNF2/history
2•simonpure•12m ago•0 comments

I'm Writing Go Again

https://twitter.com/mitchellh/status/2046319366489407803
2•tosh•13m ago•0 comments

Jury Awards $5K Verdict in Second Uber Sexual Assault Bellwether Trial

https://www.law.com/2026/04/20/jury-awards-5k-verdict-in-second-uber-sexual-assault-bellwether-tr...
1•1vuio0pswjnm7•13m ago•0 comments

Build an arcade game under 50kb, win 300 USD

https://hack.platan.us/26/arcade/ar
2•rafafdz•14m ago•2 comments

Japan in Birth-Rate Panic: You Get Paid 20k Yen to Use Tinder

https://anitsu.com/en/news/japan-in-panic-you-get-paid-20000-yen-to-use-tinder/
3•randycupertino•14m ago•1 comments

Pete Hegseth scraps mandatory flu shots for U.S. service members

https://www.cbsnews.com/news/pete-hegseth-scraps-mandatory-flu-shots-american-service-members/
2•rolph•15m ago•0 comments

Blue Origin New Glenn rocket grounded after launching satellite into wrong orbit

https://www.boston25news.com/news/science/blue-origins-new/5ORGDBBN746LTDZ46OPZF7UAIQ/
2•1vuio0pswjnm7•15m ago•0 comments

Claude Platform on AWS (Coming Soon)

https://aws.amazon.com/claude-platform/
3•connortyndall•15m ago•0 comments

Show HN: Daemons – we pivoted from building agents to cleaning up after them

https://charlielabs.ai/
6•rileyt•17m ago•0 comments

Sendspin: Open standard for synchronized music across multiple devices and rooms

https://www.sendspin-audio.com/
1•CharlesW•17m ago•0 comments

Former Pinterest team redesigns email with Extra – and it's good

https://techcrunch.com/2026/04/21/former-pinterest-team-redesigns-email-with-extra-and-its-actual...
1•babelfish•17m ago•0 comments

Draft-Meow-Mrrp-00

https://datatracker.ietf.org/doc/html/draft-meow-mrrp-00
2•lstodd•18m ago•0 comments