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?

Job postings show early signs of AI automation impact

https://www.dallasfed.org/research/economics/2026/0901
1•speckx•30s ago•0 comments

Theyond – Jobs Without the Resume

1•spylake•52s ago•0 comments

Show HN: Coder Eval – A Framework for Evals

https://github.com/uipath/coder_eval
1•mihaich•2m ago•0 comments

Filmmakers tout AI's use in Hollywood

https://www.semafor.com/article/09/04/2026/filmmakers-tout-ais-use-in-hollywood-at-the-other-film...
1•tolerance•3m ago•0 comments

Show HN: MyHandler – Local-first AI assistant for Windows, llama.cpp on Vulkan

https://myhandler.ai/
1•temilson•5m ago•0 comments

New Methods That Compromise Passkey Authentication

https://www.bleepingcomputer.com/news/security/39-new-methods-that-compromise-passkey-authenticat...
1•sbulaev•5m ago•0 comments

Vigilantism Comes for Flock

https://this.weekinsecurity.com/vigilantism-comes-for-flock/
1•moooooky•5m ago•1 comments

Government Rails Site Hit Hours After CVE Patch

https://rietta.com/blog/ruby-on-rails-cve-exploited-hours-after-patch/
2•rietta•6m ago•0 comments

Show HN: Squeezed – Pipe any audio into synced Squeezebox players, no LMS needed

https://github.com/tsirysndr/squeezed
1•tsiry•6m ago•0 comments

The Iron Heel

https://en.wikipedia.org/wiki/The_Iron_Heel
2•floweronthehill•8m ago•0 comments

Thoughts on the Buildkite Aug 25 incident

https://surfingcomplexity.blog/2026/09/01/thoughts-on-the-buildkite-aug-25-incident/
1•aray07•8m ago•0 comments

Show HN: Slavesofaipac.org

https://slavesofaipac.org/
1•computerex•10m ago•0 comments

Raising Capital? Start Here

https://leadagentx.ai
1•liranbr•10m ago•0 comments

NetworkManager Works to Enforce AI Policy by Tricking AI Agents to Add a Canary

https://www.phoronix.com/news/NetworkManager-AI-Canary
1•ta988•12m ago•0 comments

Microsoft says Windows 11 age checks will limit features, starting with Teams

https://www.neowin.net/news/microsoft-confirms-windows-11-age-verification-to-heavily-limit-featu...
5•bundie•13m ago•0 comments

Why HDR Looks Washed Out (and How SRGB Works)

https://allenwp.com/blog/2026/09/04/why-hdr-looks-washed-out-and-how-srgb-works/
3•Vermeulen•14m ago•0 comments

Fermat's Last Theorem in Lean 4

https://github.com/anthropics/fermats-last-theorem
6•aaraujo002•15m ago•1 comments

Eidon: Self-hosted AI assistant with Grok Bot-like agent mode

https://github.com/Quack6765/Eidon-AI
2•Quack6765•15m ago•0 comments

Show HN: Ccswitch – Switch between multiple Claude Code accounts

https://github.com/2hmad/ccswitch
2•ahmednoreldin•16m ago•0 comments

Data Centers Are 'Awesome for Blue-Collar Americans'

https://www.businessinsider.com/gavin-baker-ai-data-centers-awesome-blue-collar-americans-2026-9
3•gmays•16m ago•1 comments

Show HN: Visor – YouTube for kids, with channels approved by parents

https://gotvisor.com
2•cherubsta•16m ago•0 comments

LLMs Are Bad at Teaching

https://www.heyaristotle.com/blog/funneling-vs-focusing
3•rshanreddy•17m ago•1 comments

Local Multi-Agent Swarm: An ant farm for local LLM agents

https://github.com/franciscocarloserra/local-multi-agent-swarm
1•FranciscoCarlos•18m ago•0 comments

The jobs apocalypse is postponed. An AI jobs boom is here

https://economist.com/finance-and-economics/2026/09/04/the-jobs-apocalypse-is-postponed-an-ai-job...
3•andsoitis•19m ago•3 comments

AI Budget Is There. It's Hiding in Your Cloud Bill

https://medium.com/@yanivleven/your-ai-budget-is-already-there-its-hiding-in-your-cloud-bill-8595...
1•yanivleven•20m ago•0 comments

Claude Code vs. Codex – For Pentesting

https://medium.com/@duckwrites/claude-code-vs-codex-for-pentesting-7624290438fa
1•syumei•21m ago•0 comments

Microsoft to bounce mail from outdated Exchange servers

https://www.theregister.com/on-prem/2026/09/04/microsoft-to-bounce-mail-from-outdated-exchange-se...
1•DemiGuru•21m ago•0 comments

Shutting down our public encrypted DNS

https://mullvad.net/en/blog/shutting-down-our-public-encrypted-dns-servers-and-sponsoring-quad9-i...
31•mywacaday•22m ago•3 comments

Artificial Delay Lines

https://www.rfcafe.com/references/radio-electronics/artificial-delay-lines-radio-electronics-marc...
2•wetwater•23m ago•0 comments

Z1T: Sparse Transformer‑Like Models for Probabilistic Hardware

https://extropic.ai/writing/z1t/
1•frozenseven•24m ago•1 comments