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?

Show HN: I turned my PDFs into audiobooks I can have conversations with

https://asktotle.com
1•simpnoza•1m ago•0 comments

How Tailscale is improving NAT traversal (Part 1)

https://tailscale.com/blog/nat-traversal-improvements-pt-1
1•rzk•1m ago•0 comments

Making physical Japanese cards: The full walkthrough from zero to launch

https://alt-romes.github.io/posts/2026-01-30-from-side-project-to-kickstarter-a-walkthrough.html
1•romes•2m ago•0 comments

How to quickly run your own ClawdBot/OpenClaw on AWS

https://deadneurons.substack.com/p/how-to-quickly-run-your-own-clawdbotopenclaw
1•nr378•9m ago•0 comments

Why is everyone pretending Moltbook is for bots?

https://news.ycombinator.com/submitted?id=72ave2
1•72ave2•9m ago•1 comments

I Test Drove a Chinese EV. Now I Don't Want to Buy American Cars Anymore

https://www.wsj.com/tech/personal-tech/chinese-ev-test-drive-xiaomi-su7-c3e59282
3•dkobia•9m ago•0 comments

Japan's Kioxia extends memory chip JV with SanDisk, receiving $1B

https://asia.nikkei.com/business/tech/semiconductors/japan-s-kioxia-extends-memory-chip-jv-with-s...
1•walterbell•10m ago•0 comments

Ask HN: How do you give AI enough Java-specific context before code generation?

1•decebals•10m ago•1 comments

Zero-Knowledge Privacy Infrastructure for Solana

1•2r1in•16m ago•0 comments

Anthropic 'destructively' scanned books to build Claude

https://www.washingtonpost.com/technology/2026/01/27/anthropic-ai-scan-destroy-books/
2•Anon84•16m ago•0 comments

Show HN: Prompt-injection firewall for OpenClaw agents

https://github.com/ContextFort-AI/clawdbot-runtime-controls
1•ashwinr2002•17m ago•0 comments

What makes an engineer when everyone can vibe code

https://twitter.com/rohit4verse/status/2018013775023263806
1•7777777phil•17m ago•0 comments

Trust in Ranking

https://www.marginalia.nu/log/a_130_trust_in_ranking/
1•signa11•18m ago•0 comments

What do people use for Text-to-Voice?

1•bbyford•18m ago•0 comments

When AI Assumes We Know

https://www.psychologytoday.com/us/blog/the-digital-self/202601/when-ai-assumes-we-already-know
1•omkar-foss•19m ago•0 comments

I calculated what 1M tokens costs across 50 LLM models

https://withorbit.io/blog
1•harshit19932703•20m ago•0 comments

Show HN: I built a digital clock with a 3D-printed case, custom PCB, and Arduino

https://boxart.lt/blog/diy_digital_clock
1•roadsidejesus•21m ago•0 comments

Claude for Excel system prompt, tools and beta headers

https://twitter.com/hewliyang/status/2018278447429382531
1•hewliyang•28m ago•0 comments

To Every Developer Close to Burnout, Read This · TheSeniorDev

https://www.theseniordev.com/blog/to-every-developer-close-to-burnout-read-this
1•birdculture•29m ago•0 comments

Show HN: Judgment Boundary – Stop as a First-Class Outcome for AI Systems

https://github.com/Nick-heo-eg/stop-first-rag
1•echoos•31m ago•1 comments

Copy Protection in Jet Set Willy

https://intarch.ac.uk/journal/issue45/2/1.html
1•Dachande663•31m ago•0 comments

DNS Mesh with eBPF

2•woodprogrammer•31m ago•0 comments

Build chatbot to talk with your PostgreSQL database using Python and local LLM

https://mljar.com/blog/chatbot-python-postgresql-local-llm/
1•pplonski86•32m ago•0 comments

New satellite view of Tibet's tectonic clash

https://www.esa.int/Applications/Observing_the_Earth/Copernicus/Sentinel-1/New_satellite_view_of_...
2•layer8•33m ago•0 comments

Android + termux + pi

https://twitter.com/badlogicgames/status/2018200939979526335
2•tosh•35m ago•0 comments

A Pyrrhic Victory?

https://zhaoxo.substack.com/p/a-pyrrhic-victory
1•shrinkzxo•35m ago•0 comments

We Developed a Rule Database

1•rockeetterark•35m ago•0 comments

Show HN: Uruflow – A self-hosted, lightweight CI/CD server written in Go

https://github.com/urustack/uruflow
1•musnas•38m ago•0 comments

Show HN: WonderPic – Turn photos into cartoons/sketches (Free, No Login)

https://www.wonderpic.art/
1•Sharon111•41m ago•1 comments

JigsawPuzzle.pro – Turn any photo into a puzzle (Client-side only)

https://jigsawpuzzle.pro/
1•zealer•41m ago•1 comments