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?

Show HN: Grist, open source coding harness

https://grist.lol/
1•pranav6226•5m ago•0 comments

What is zero-knowledge, end-to-end encryption?

https://blog.mega.io/what-is-zero-knowledge-end-to-end-encryption
4•devonnull•9m ago•0 comments

Noodle AI Bots Mac App

https://usenoodle.app/
1•handfuloflight•12m ago•0 comments

A fifth of Swiss Alpine ice has vanished in five years

https://www.swissinfo.ch/eng/glaciers-permafrost/a-fifth-of-swiss-alpine-ice-has-vanished-in-five...
2•Teever•15m ago•0 comments

Show HN: Pyxel – A Python retro game engine with built-in art and sound editors

https://github.com/kitao/pyxel
1•kitao•16m ago•0 comments

The Softmax function and its derivative

https://eli.thegreenplace.net/2016/the-softmax-function-and-its-derivative/
1•costco•18m ago•0 comments

Tiny Brutalism

https://placeholders.itch.io/tiny-brutalism
1•abetusk•19m ago•0 comments

Show HN: Shootsolo – a free camera app for filming yourself without a crew

https://shootsolo.com/
1•KarimMuhtar•19m ago•0 comments

Butterflies use optical illusions to dodge predators

https://www.essex.ac.uk/news/2026/09/30/butterflies-use-optical-illusions-to-dodge-predators
3•gmays•27m ago•0 comments

Personal Computing 2.0: It's time for a personal computing revolution

https://ideas.imbue.com/p/personal-computing-20
5•raybb•27m ago•1 comments

LibDragon (N64): Explicit Anti-AI Contributor Stance (GitHub Issue)

https://github.com/DragonMinded/libdragon/issues/1012
3•some-guy•30m ago•1 comments

Several vulnerabilities have been discovered in the Linux kernel

https://lwn.net/Articles/1097401/
4•luispa•31m ago•1 comments

DoGBench: The first user-facing docs generation benchmark. No model scores >50%

https://dogbench.ai/
3•prithvi2206•32m ago•1 comments

LiveNerf Adopts MIT License

https://github.com/ninjahawk/livenerf/discussions/13
1•ninjahawk1•32m ago•0 comments

Show HN: I built a better way to browse and filter the NYT's 100 Best TV Shows

https://100besttvshows.madebyaqua.com/
1•felixding•33m ago•0 comments

Llmtobinary – a potential way to make LLMs generate machine code

https://llmtobinary.com/
1•thomasfromcdnjs•35m ago•0 comments

California issues investigative subpoena to OpenAI over rogue agents' hacking

https://www.theguardian.com/us-news/2026/oct/01/california-opens-investigation-openai-hack
3•sbulaev•35m ago•0 comments

DockTerm: A notch mascot that tells you when Claude Code needs you

https://github.com/munvard/dockterm
1•moonlabs•36m ago•0 comments

Show HN: Proteus – Can DeepSeek Harness evolve itself to handle audio?

https://proteus-evolve.github.io/dsh-self-improvement.html
1•easonlu1017•36m ago•0 comments

Threadline: Open-Web Community and Identity Infrastructure

https://threadline-api-delta.vercel.app/
2•BillStan•37m ago•0 comments

Show HN: Pair.nvim – Agent assistance while staying in the codebase

https://github.com/sampsn/pair.nvim
1•sampsn•38m ago•0 comments

Show HN: Proteus – A framework for harnesses that evolve their own source

https://github.com/proteus-evolve/Proteus
1•easonlu1017•39m ago•0 comments

EUV Photomasks Are Getting Bigger [video]

https://www.youtube.com/watch?v=B7KcQ2yE6pM
1•mfiguiere•40m ago•0 comments

Apple's smart home camera reportedly won't record video

https://www.theapplepost.com/2026/10/01/72882/apples-smart-home-camera-reportedly-wont-record-video/
4•mikelgan•42m ago•0 comments

Auth factory – identity management running on Cloudflare

https://workos-demo-2en.pages.dev
1•measurablefunc•44m ago•0 comments

Message UI

https://imessage.swerdlow.dev
2•benswerd•46m ago•1 comments

Commadore64 vs. Nvidia GB10

1•spottedmarley•47m ago•0 comments

Show HN: PhreshOS – OS for Web Apps

https://github.com/PhreshOS/system
1•zouhirdx•47m ago•0 comments

MonoCode: GUI for Coding Agents

https://www.usemono.dev/
1•handfuloflight•51m ago•0 comments

Claude-Shaped Science

https://www.anthropic.com/research/claude-shaped-science
1•acossta•51m ago•0 comments