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

Superposition Yields Robust Neural Scaling

https://arxiv.org/abs/2505.10465
1•kioku•3m ago•0 comments

Canada Warms Up to EVs from China

https://www.caranddriver.com/news/a70188525/chinese-evs-north-america/
1•breve•3m ago•0 comments

Khosrow Alikordi: Lawyer for Mahsa Amini

https://en.wikipedia.org/wiki/Khosrow_Alikordi
1•ukblewis•5m ago•0 comments

Free async standup bot for Slack – looking for feedback

https://www.vereda.ai/free-slack-standup-bot
1•awightman•6m ago•1 comments

AI Incident Roundup – November and December 2025 and January 2026

https://incidentdatabase.ai/blog/incident-report-2025-november-december-2026-january/
1•YeGoblynQueenne•10m ago•0 comments

TikTok hit with charges by EU for its addictive features

https://www.reuters.com/business/media-telecom/tiktok-hit-with-charges-breaching-eu-online-conten...
3•hackerbeat•13m ago•0 comments

Signy: Signed URLs for Small Devices

https://github.com/golioth/signy
1•hasheddan•14m ago•0 comments

Shadcn/Create in Figma

https://www.shadcndesign.com/blog/shadcn-create-in-figma
1•figmaster•15m ago•0 comments

Show HN: Langraph Networks as Equations

https://github.com/kummahiih/python-langgraph-equations
1•kummap•15m ago•0 comments

Bui – TUI for painless Bubblewrap sandboxing

https://smaller.fish/posts/bubblewrap_tui
1•smallerfish•15m ago•0 comments

John Haugeland on the failure of micro-worlds

https://blog.plover.com/tech/gpt/micro-worlds.html
1•robinhouston•19m ago•0 comments

EC preliminarily finds TikTok's addictive design is Digital Services Act breach

https://ec.europa.eu/commission/presscorner/home/en
2•u1hcw9nx•21m ago•0 comments

Ask HN: XCancel but for Instagram?

2•Nurbek-F•21m ago•0 comments

Toyota retains top auto crown in 2025 with record sales

https://www.reuters.com/business/autos-transportation/toyota-retains-top-auto-crown-2025-with-rec...
2•breve•24m ago•0 comments

Iranian regime propaganda floods Wikipedia

https://www.neutralpov.com/p/a-flood-of-iranian-propaganda-on
1•ukblewis•25m ago•0 comments

Show HN: Gazill – Save your code, it's live. Built for vibe coders and agents

1•niklai•25m ago•0 comments

Show HN: Grok Prompts – AI image and video generator with 500 curated prompts

https://grokprompts.app/
1•Yreminder•28m ago•0 comments

Library of Babel 3D

https://library-of-babel-3d.netlify.app/
1•m-hodges•31m ago•0 comments

Amara

https://amara.01c.ai/
2•ashkan01c•31m ago•2 comments

A curated list of best Python books

https://github.com/lara-west/PythonBooks
1•mahsima•33m ago•0 comments

Monty – A minimal, secure Python interpreter written in Rust for use by AI

https://github.com/pydantic/monty
2•areski•33m ago•0 comments

A startup copied my landing page (and then gave me great feedback on it)

https://blog.dahl.dev/posts/startup-copied-my-design/
2•aleda145•36m ago•0 comments

US Immigration on the Easiest Setting

https://pluralistic.net/2026/02/06/doge-ball/#n-600
8•headalgorithm•36m ago•1 comments

Trois-Rivières, le jeu vidéO

https://www.trois-rivieres.net/
2•JeanKage•36m ago•0 comments

Show HN: PromptHub – 2000 Free AI Prompts for ChatGPT and Midjourney

https://promptshub.shop
1•meimeixoxi•36m ago•0 comments

First Proof: Research-Level Math for AI Evaluation

https://1stproof.org
1•panic•39m ago•0 comments

Show HN: An app to use Instagram without Reels on iOS

https://apps.apple.com/us/app/timecap-limit-screen-time/id6737515680
1•antoferra•41m ago•0 comments

Need feedback for AI tool that lets non-technical users query Postgres

2•dimitsapis•48m ago•0 comments

Ask HN: What you want in a travel planner app?

1•shubhwicked•48m ago•1 comments

Western Digital details 14-platter 3.5-inch HAMR HDD designs with 140 TB plus

https://www.tomshardware.com/pc-components/hdds/western-digital-details-14-platter-3-5-inch-hamr-...
2•asdefghyk•49m ago•1 comments