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?

Magenta RealTime 2: Open and Local Live Music Models

https://magenta.withgoogle.com/magenta-realtime-2
1•selvan•1m ago•1 comments

BrowseComp-Plus: A More Fair and Transparent Benchmark of Deep-Research Agent

https://github.com/texttron/BrowseComp-Plus
1•colonCapitalDee•2m ago•0 comments

Meta Silently Added Face-Recognition for Its Smart Glasses to Phones

https://www.wired.com/story/meta-smart-glasses-face-recognition-nametag-connections/
1•thm•2m ago•0 comments

Building AI Neuroscience: From Atoms to Bits

https://blog.amaranth.foundation/p/building-ai-neuroscience-from-atoms
1•pminimax•2m ago•0 comments

DB Nerds – Try this out

https://kesseldb.com/
1•haz00•3m ago•0 comments

Flesh-eating screwworm returns to U.S. after 60 years, threatening cattle herd

https://www.nbcnews.com/news/us-news/new-world-screwworm-case-detected-texas-calf-cattle-food-sup...
1•Pxtl•3m ago•1 comments

The year of IPv6-only desktop

https://ripe92.ripe.net/programme/meeting-plan/sessions/94/PBHCLK/
1•ivlad•4m ago•0 comments

SpaceX: Flying High on Impunity

https://georgiebc.wordpress.com/2026/06/01/flying-high-on-impunity/
1•ortr•12m ago•0 comments

Charges dismissed for dad who shot daughter's rapist

https://www.cnn.com/2026/06/04/us/aaron-spencer-murder-charges-dismissed
2•nacho-daddy•13m ago•0 comments

Built a runtime layer so automation scripts and AI systems don't forget state

https://stateflow-dev.github.io/stateflowlabs/
1•StateflowsLabs•15m ago•0 comments

Model Optimization

https://developers.openai.com/api/docs/guides/model-optimization
2•ankitg12•26m ago•0 comments

Linear Cosine Palettes(2025)

https://blog.djnavarro.net/posts/2025-09-14_cosine-palettes/
2•num42•31m ago•0 comments

Senior Data Engineer – Climate Friendly

https://au.seek.com/job/92537981
2•molliejackson•31m ago•1 comments

agentgateway Joins AAIF as an Open Gateway for Agentic AI Infrastructure

https://aaif.io/blog/agentgateway-joins-aaif-as-an-open-gateway-for-agentic-ai-infrastructure/
2•wicket•32m ago•0 comments

Show HN: Wyreup.com – Common JavaScript tools packaged for offline and agent use

https://wyreup.com/
2•tamler•37m ago•0 comments

Anthropic Wants Worldwide AI Development Pause

https://www.wsj.com/finance/investing/anthropic-calls-for-global-slowdown-in-ai-development-4f2134f6
3•jonbaer•39m ago•0 comments

NASA announces 3 uncrewed missions to moon this year to prepare to build a base

https://www.nbcnews.com/science/space/nasa-announces-moon-missions-prepare-build-base-rcna346349
8•gmays•42m ago•0 comments

Chinese users do not like "super apps"

https://twitter.com/trydotworks/status/2062723113322741895
7•try-working•46m ago•1 comments

The AI Treadmill

https://debliu.substack.com/p/the-ai-treadmill
2•swolpers•48m ago•0 comments

Meta scales back plan for internal mouse-tracking tech, citing staff concerns

https://www.reuters.com/world/meta-scales-back-ai-mouse-clicks-tool-citing-employee-concerns-2026...
3•gnabgib•48m ago•0 comments

Sparknotes for your agents. Try for free

https://www.aiagentnotes.com/
2•mattmerrick•49m ago•1 comments

Ask HN: macOS went from Cat to California, next what?

3•akashwadhwani35•54m ago•1 comments

Benevolent dictator Zuck will give Meta staff 30-minute break keylogging assault

https://www.theregister.com/ai-and-ml/2026/06/04/meta-to-allow-staff-breaks-from-keylogging-data-...
5•Bender•55m ago•3 comments

'Please do not vibe f–- up this software': Broken backups spark AI coding row

https://www.theregister.com/ai-and-ml/2026/06/04/please-do-not-vibe-f-up-this-software-broken-bac...
3•Bender•56m ago•1 comments

Azure Linux 4.0 is Microsoft's first general-purpose Linux

https://www.boxofcables.dev/azure-linux-4-0-is-microsofts-first-general-purpose-linux/
11•haydenbarnes•57m ago•2 comments

Larger context windows and configurable reasoning levels for GitHub Copilot

https://github.blog/changelog/2026-06-04-larger-context-windows-and-configurable-reasoning-levels...
3•Klaster_1•57m ago•0 comments

Walmart investors reject AI workplace report as automation expands in the US

https://www.reuters.com/legal/litigation/walmart-investors-reject-ai-workplace-report-automation-...
2•petethomas•58m ago•4 comments

Jo: A statically typed language that targets Ruby

https://jo-lang.org/
2•thunderbong•1h ago•0 comments

The Causes of Long Covid

https://www.science.org/content/blog-post/causes-long-covid
22•maxall4•1h ago•5 comments

NPM-Scan v1.1.0: Four New Detectors for June 2026 Supply Chain Attacks

https://github.com/lateos-ai/npm-scan/blob/main/VALIDATION.md
2•lateos-ai•1h ago•1 comments