frontpage.
newsnewestaskshowjobs

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?

Applesauce: Transparent Compression for Apple File System Compression (AFSC)

https://github.com/Dr-Emann/applesauce
1•colechristensen•3m ago•0 comments

Jev – System-1 Agent Architecture Radar (open-source)

https://github.com/logicrw/awesome-jev-projects
1•noobplus•4m ago•0 comments

Nobel economists throw support behind California billionaire tax

https://www.ft.com/content/94ec0fee-53ab-4d7e-9b17-6b05608ad974
1•paulpauper•4m ago•0 comments

UK productivity grew twice as fast as thought after 2008 financial crisis

https://www.ft.com/content/560fc2ad-5c7e-4878-ae9b-a3183004c394
1•paulpauper•4m ago•0 comments

Jevcache

https://jevcache.sh/
1•handfuloflight•5m ago•0 comments

Victor Hugo Helped Save the Notre-Dame

https://news.artnet.com/art-world/art-bites-victor-hugo-notre-dame-2802365
2•ohjeez•5m ago•0 comments

ZCode: Z.ai's coding agent harness. Powerful, intelligent, extensible

https://github.com/zai-org/ZCode
1•doppp•11m ago•0 comments

Flock Partnered with Nonprofit That Uses AI to Rally Public Support

https://theintercept.com/2026/09/17/flock-cameras-ai-astroturf-support/
2•dp-hackernews•16m ago•0 comments

How to Post Train

https://howtoposttrain.com/
1•Nischalj10•21m ago•0 comments

A study of sequence weighting at scale

https://blog.janestreet.com/a-study-of-sequence-weighting-at-scale/
1•eatonphil•21m ago•0 comments

How Google is drafting AI chatbot laws around the country

https://www.npr.org/2026/09/18/nx-s1-5968878/ai-chatbots-safety-regulation-google
1•andsoitis•28m ago•0 comments

Giveaway Bot Services

https://discord.com/oauth2/authorize?client_id=1547251904277651578&permissions=4503599627783232&i...
1•jotajx•29m ago•0 comments

Nvidia's Jensen Huang rejects AI extinction warnings as "doomsday narratives"

https://www.cbsnews.com/news/jensen-huang-nvidia-rejects-ai-extinction-warnings/
4•AlexDragusin•31m ago•2 comments

ReBarUEFI: Resizable BAR for almost any UEFI system

https://github.com/xCuri0/ReBarUEFI
1•nateb2022•33m ago•0 comments

OpenAI Sees Burning Through $278B by 2030: FT

https://www.bloomberg.com/news/articles/2026-09-18/openai-projects-burning-through-278-billion-by...
3•sbulaev•33m ago•2 comments

The Roman Space Telescope, explained and up to date

https://romantelescope.info/
1•smcnally•36m ago•0 comments

The Pain Axis: LLMs Represent Self-Directed Harm and Act to Relieve It

https://arxiv.org/abs/2609.16247
1•Anon84•37m ago•0 comments

Show HN: Pollresults.org – free US election opinion poll API

https://pollresults.org
1•ronbenton•38m ago•0 comments

Chasing Speed of Light on TPU v6e

https://www.sailresearch.com/blog/tpu-v6e-gemma
2•simonpure•40m ago•0 comments

1k careers. One universe. Sign up not necessary

https://epie.life/
1•krnmythicx•45m ago•5 comments

Ask HN: Anyone Played with Jetson Orin Nano Super?

1•prologic•49m ago•0 comments

Show HN: Gdocs-me-up: a high-fidelity Google Docs exporter

https://github.com/behdad/gdocs-me-up
1•behdad•54m ago•0 comments

OpenPrompt – one workspace for developers using multiple AI coding tools

https://openprompt.tech
2•harafernando•55m ago•0 comments

Masked LFW (MLFW) Database

http://whdeng.cn/MLFW/index.html
1•teleforce•57m ago•0 comments

CostRift

https://costrift.com
1•DavidFerreira•57m ago•0 comments

Jev, Prolog, Pi, and the dream of probabilistic logic programming

https://deepclause.substack.com/p/jev-prolog-pi-and-the-dream-of-probabilistic
3•schmuhblaster•58m ago•0 comments

Why back propagation goes backward

https://gregorygundersen.com/blog/2018/04/15/backprop/
2•andsoitis•58m ago•0 comments

Recursive Cognitive Optimization (RCO)

https://github.com/sealvlon/Recursive-Cognitive-Optimization-RCO-
1•sealvarezl•1h ago•0 comments

Trump says it's time to rebrand AI with a new name

https://techcrunch.com/2026/09/19/trump-suggests-rebranding-ai-with-a-new-name-says-hes-also-crea...
3•GymInMeCricket•1h ago•5 comments

Can You Beat Jev?

https://antics.gg/can-you-beat-jev
2•eric_khun•1h ago•1 comments