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?

Granite-4.0-Tiny-Preview

https://huggingface.co/ibm-granite/granite-4.0-tiny-preview
1•handfuloflight•1m ago•0 comments

Your hex editor should color-code bytes

https://simonomi.dev/blog/color-code-your-bytes/
1•tobr•1m ago•0 comments

Show HN: Agensi – Curated marketplace for AI agent skills (SKILL.md)

https://www.agensi.io
1•Samuellrose•3m ago•0 comments

Locki v2 – Zero-knowledge text encryption inside any web app

https://lockisecurity.com/en
1•dtlnv•4m ago•0 comments

I built an AI SRE in 60mins, you should too

https://www.gouthamve.dev/i-built-an-ai-sre-in-60mins-you-should-too/
1•gouthamve•4m ago•0 comments

Two Months in Google OAuth Verification Hell

https://zencapital.substack.com/p/two-months-in-google-oauth-verification
1•zenincognito•5m ago•0 comments

Paris Blockchain Week 2026: Four Things the Main Stage Didn't Tell You

https://irishtechnews.ie/paris-blockchain-week-2026-four-key-takeaways/
1•ybelkin•7m ago•0 comments

Phototypesetting with the Berthold Diatype [video]

https://www.youtube.com/watch?v=76qwCF6ThLs
1•altilunium•9m ago•0 comments

Financial Data Integration: A Practical Guide

https://blog-2026-04-27-hidden-costs.layline-web-2026.pages.dev/resources/blog/2026-04-20-financi...
1•tandrew•14m ago•0 comments

'Robots don't bleed': Ukraine sends machines into battle in place of humans

https://www.cnn.com/2026/04/20/europe/robots-ukraine-battlefield-drones-intl-cmd
2•breve•15m ago•0 comments

Linotype Demonstration [video]

https://www.youtube.com/watch?v=MI2sYvUb4_0
1•altilunium•18m ago•0 comments

Personal data leak: French document agency ANTS hit by cyberattack

https://www.connexionfrance.com/news/personal-data-leak-french-document-agency-hit-by-cyberattack...
1•RockstarSprain•24m ago•0 comments

Monitoring CPU and Memory on Your VPS with AppSignal

https://blog.appsignal.com/2026/04/21/monitoring-cpu-and-memory-on-your-vps-with-appsignal.html
1•malinavojvodic•27m ago•0 comments

Show HN: Chrome extension for always on Work Assistant (ActorDo)

https://actordo.com/chrome-extension/
1•websku•28m ago•0 comments

Show HN: Anvil-uplink-CLI – agent-safe terminal CLI for Anvil.works apps

https://github.com/matshoppenbrouwers/anvil-uplink-cli
1•hoponthestack•33m ago•0 comments

Show HN: My AI Native Obsidian Setup

https://alexanderweichart.de/4_Projects/obsidian-setup-2026/My-AI-native-Obsidian-Setup
3•surrTurr•33m ago•0 comments

Republican Rep. Obsessed with Hating Muslims Unveils Mamdani Act

https://newrepublic.com/post/209272/republican-rep-chip-roy-mamdani-act-muslims-socialists-immigr...
1•handfuloflight•37m ago•0 comments

OpenMythos: A looped transformer take on how Claude Mythos might work

https://firethering.com/openmythos-open-source-claude-mythos-reconstruction/
2•steveharing1•39m ago•1 comments

China's energy fortress was built to withstand just this type of oil shock

https://www.cnn.com/2026/04/20/china/china-energy-security-global-oil-crisis-iran-intl-hnk
6•breve•46m ago•0 comments

Key Front End Architectural Patterns for Complex Applications

https://sometechblog.com/posts/frontend-architecture-decisions/
1•l5870uoo9y•46m ago•0 comments

PhantomChat – Post-quantum messenger with Monero-style stealth addresses

https://github.com/cengo441337-a11y/phantomchat
2•n0l3x•48m ago•0 comments

Modeling Sparse and Bursty Vulnerability Sightings

https://arxiv.org/abs/2604.16038
1•cedricbonhomme•52m ago•0 comments

The History of SuperTuxKart

https://supertuxkart.net/History_of_SuperTuxKart
1•mdtrooper•54m ago•0 comments

Digital Omnibus reality check: 83.5% of access requests not properly answered

https://noyb.eu/en/digital-omnibus-reality-check-835-access-requests-not-properly-answered
2•latexr•55m ago•0 comments

Show HN: Static Flipbooks of Complex Media

https://flipbook.browserbox.io/
1•keepamovin•57m ago•0 comments

Claude for Equity Research

https://www.asiancenturystocks.com/how-to-use-claude-for-equity-resear/
1•fritz123•57m ago•0 comments

DotLLM – Building an LLM Inference Engine in C#

https://kokosa.dev/blog/2026/dotllm/
2•bjarteaarmolund•1h ago•0 comments

A DIY Watch You Can Actually Wear

https://www.hackster.io/news/a-diy-watch-you-can-actually-wear-8f91c2dac682
7•sarusso•1h ago•0 comments

Grafana 13

https://grafana.com/blog/grafana-13-release-all-the-latest-features/
4•dabinat•1h ago•0 comments

Overview of Kimi K2.6 Model

https://platform.kimi.ai/docs/guide/kimi-k2-6-quickstart
2•igravious•1h ago•0 comments