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

May I recommend eww for Emacs's innovative UI?

https://www.matem.unam.mx/~omar/apropos-emacs.html#may-i-recommend-eww-for-emacs-innovative-ui
1•birdculture•11m ago•0 comments

Climate scientists admit doomsday scenario no longer believable

https://www.gbnews.com/science/apocalypse-forecasts-climate-scientists
3•nxm•15m ago•0 comments

Google and Blackstone to Create New AI Cloud Company

https://www.wsj.com/tech/ai/google-and-blackstone-to-create-new-ai-cloud-company-0e35b91f
2•frays•18m ago•0 comments

Self-Hosted Web Application for Displaying and Interacting with KiCad Projects

https://github.com/krishna-swaroop/KiCAD-Prism
1•djfergus•21m ago•0 comments

An Apple (II) for Teacher

https://technicshistory.com/2026/05/19/an-apple-ii-for-teacher/
1•cfmcdonald•26m ago•0 comments

Five months after switching Fluxzy from Electron to Tauri

https://www.fluxzy.io/resources/blogs/electron-to-tauri-migration-fluxzy-desktop
1•nreece•27m ago•0 comments

Microsoft surprises with its first server Linux distribution: Azure Linux 4.0

https://www.zdnet.com/article/microsoft-releases-its-first-server-linux-distribution-azure-linux-...
2•CrankyBear•27m ago•1 comments

AgentCRM – Headless CRM for Claude Code

https://github.com/cluster-software/agent-crm
3•samuelstros•28m ago•0 comments

Melbourne psychiatrist refuses new patients who don't consent to AI note-taking

https://www.theguardian.com/australia-news/2026/may/19/melbourne-psychiatrist-ai-note-taking-new-...
2•anotherevan•30m ago•0 comments

Data Center Waste Heat as an Emerging Urban Thermal Hazard

https://asmedigitalcollection.asme.org/sustainablebuildings/article/doi/10.1115/1.4071922/1233035...
1•littlexsparkee•31m ago•0 comments

What political censorship looks like inside an LLM's weights (Qwen 3.5)

https://vas-blog.pages.dev/qwen-censorship/
2•s314•35m ago•0 comments

Apple kicks off WWDC on June 8

https://www.apple.com/newsroom/2026/05/apple-kicks-off-worldwide-developers-conference-on-june-8/
1•throw0101c•37m ago•0 comments

Building a hyper modular framework for hardware

https://www.getubo.com/post/building-a-flexible-future-proof-compute-system
1•mmajzoobi•38m ago•1 comments

how coding harnesses are used, an introspection

https://research.tamarillo.ai/coding-harness-inspection/
4•ivanbelenky•40m ago•2 comments

From-scratch reimplementation of Mythos Glasswing pipeline

https://github.com/evilsocket/audit
1•djfergus•41m ago•0 comments

A Simple Image Brightness and Contrast Adjustment Technique

https://geo-ant.github.io/blog/2026/simple-image-contrast-brightness-adjustment/
2•yurivish•45m ago•0 comments

Azure's MFA Warning Links Free-Tier Users to a Page They Can't Use

https://playtechnique.io/blog/azures-mfa-warning.html
1•gwynforthewyn•47m ago•0 comments

Nous Research edits GitHub issue to remove plagiarism claims about Hermes Agent

https://github.com/NousResearch/hermes-agent/issues/10232
4•simonmysun•48m ago•0 comments

Show HN: I trained YOLOv8 to detect dynamics markings on sheet music

https://sheetmusicexplainer.com/
1•derekhdawson•57m ago•0 comments

Phantom Data Centers Didn't Break the Power Grid–They Proved It Was Broken

https://www.powermag.com/phantom-data-centers-didnt-break-the-power-grid-they-proved-it-was-alrea...
2•gok•59m ago•0 comments

ASMTP – SMTP for Agents

https://www.asmtp.net/
2•nickcrews•1h ago•1 comments

Click, Agree, and Your Kids Are Bound: Court Compels Minor Children to Arbitrate

https://natlawreview.com/article/click-agree-and-your-kids-are-bound-court-compels-minor-children...
1•petethomas•1h ago•1 comments

Show HN: Vecdb – local-first hybrid vector database in Rust (HNSW and BM25)

https://github.com/zaydmulani09/vecdb
2•zaydmulani•1h ago•0 comments

Why Outsource Your Auth System and How to Sell the Decision to Your Company

https://fusionauth.io/articles/identity-basics/outsource-auth-system-blueprint
1•mooreds•1h ago•0 comments

Show HN: Spud – cross-platform remote control, optimised for gaming

https://github.com/xfoa/spud
2•foax•1h ago•1 comments

The Merge

https://blog.samaltman.com/the-merge
2•skinfaxi•1h ago•1 comments

Anthropic co-founder to present AI encyclical alongside Pope Leo XIV

https://www.vaticannews.va/en/pope/news/2026-05/pope-leo-xiv-first-encyclical-magnifica-humanitas...
64•cucho•1h ago•24 comments

Don't Sign in with Google

https://twitter.com/the_smart_ape/status/2055941633179283523
10•DeusExMachina•1h ago•1 comments

Built an API client with age-encrypted vault for secrets

https://github.com/xaaha/hulak
1•xaaha•1h ago•1 comments

Meta Reassigns 7k Employees to Focus on A.I

https://www.nytimes.com/2026/05/18/technology/meta-reassigns-7000-employees-ai.html
7•xnx•1h ago•4 comments