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?

Anthropic Shifts Planned IPO to November

https://www.wsj.com/tech/ai/anthropic-shifts-planned-ipo-to-november-8874dffc
1•qlte•51s ago•0 comments

Brian Greene interviews Stephen Wolfram: Can spacetime emerge from simple rules? [video]

https://www.youtube.com/watch?v=yAJTctpzp5w
2•lioeters•6m ago•0 comments

Steve Eisman on AI: Companies are trying to manufacture a crisis

https://www.youtube.com/watch?v=4qV5WWgFTS8
3•Betelbuddy•8m ago•1 comments

A 6502 emulator written in Markdown (and executed by an LLM)

https://dunkels.com/adam/llm-6502-emulator/
1•adunk•9m ago•0 comments

ATRA-mediated RAR-α activation attenuates acrylamide-induced testicular toxicity

https://www.nature.com/articles/s41598-026-50168-z
1•harry_nutsachs•10m ago•0 comments

The White House Tussle to Sway Trump on AI

https://www.wsj.com/tech/ai/inside-the-white-house-tussle-to-sway-trump-on-ai-0043d567
1•Topfi•10m ago•0 comments

Two parallel neural ectoderm progenitors contribute to the developing brain

https://www.nature.com/articles/s41593-026-02433-7
1•gone35•11m ago•0 comments

Anthropic is planning to launch its IPO in November

https://www.wsj.com/tech/ai/anthropics-ipo-will-happen-a-month-later-than-expected-a334b10e
2•mfiguiere•14m ago•1 comments

Valve has open-sourced Lepton, its tool to bring Android games to Steam

https://www.theverge.com/tech/997315/valve-has-open-sourced-lepton-its-tool-to-bring-android-game...
3•robotnikman•15m ago•0 comments

Exclusive-Anthropic sets up biology lab as it ramps AI drug program

https://finance.yahoo.com/healthcare/articles/exclusive-anthropic-quietly-sets-biology-100133604....
1•tortilla•16m ago•0 comments

I Hate Workday

https://nelson.cloud/i-hate-workday/
2•lr0•16m ago•1 comments

Y Combinator's PAC is throwing money at Republicans across the country

https://sf.gazetteer.co/y-combinators-pac-is-throwing-money-at-a-bunch-of-republicans-across-the-...
3•slater•16m ago•0 comments

War may be coming. Are we psychologically ready?

https://www.bbc.com/news/articles/cmn0jke547r5o
10•meep_meep_meep•17m ago•2 comments

Flawed AI Intel Brought US to the Brink of Confronting China, Claims Report

https://www.ndtvprofit.com/world/almost-started-a-war-flawed-ai-intel-brought-us-to-the-brink-of-...
2•theanonymousone•19m ago•0 comments

AI cloud provider Nscale files for IPO on $140.6M revenue, $1.02B net loss

https://www.cnbc.com/2026/09/18/nscale-ai-cloud-provider-ipo-nscl.html
2•ilamont•20m ago•0 comments

Show HN: Find Street Parking in NYC

https://parking.avi.nyc/
1•aviflombaum•23m ago•0 comments

Software-Based Live Migration for RDMA – Proceedings of the ACM Sigcomm 2025

https://dl.acm.org/doi/10.1145/3718958.3750487
1•rbanffy•24m ago•0 comments

Anthropic sets up a bio research lab for physical experiments

https://www.engadget.com/2262087/anthropic-has-set-up-a-bio-research-lab-for-physical-experiments/
4•armcat•26m ago•3 comments

Show HN: Prohibition of Nuclear Launch Automation

3•healthworker•30m ago•0 comments

A CPU Backdoor (2025)

https://phrack.org/issues/72/a-cpu-backdoor_md
3•yu3zhou4•30m ago•0 comments

Show HN: TypeSeer – on-device autocomplete for every text field on macOS

https://typeseer.com/
1•animateus•32m ago•1 comments

Show HN: Rediagram – put the diagrams you have on your brand

https://rediagram.app/ai-diagram-generator
1•marrouchi•32m ago•0 comments

We Must Create the Shit Machine

https://www.mcsweeneys.net/articles/we-must-create-the-shit-machine
13•beepbooptheory•34m ago•2 comments

Intel Appears to End Its Bug Bounty Program

https://www.phoronix.com/news/Intel-Bug-Bounty-Program-Ends
2•nh2•38m ago•0 comments

DeepSeek v4.1 Flash avg 102 tps on 4x RTX6000 pro max-q, 2.1x up from v4-flash

https://forum.level1techs.com/t/llm-inference-workstation-4x-rtx6000-blackwell-pro-max-q-384gb-vr...
2•ambientlight•40m ago•2 comments

We were right (about passkeys) all along

https://mailpace.com/blog/musings/we-were-right
6•albertgoeswoof•40m ago•0 comments

Stack Overflow relaunched Developer Story (who certifies that a human wrote it?)

https://stackoverflow.blog/2026/09/10/re-introducing-developer-story/
1•rkovashikawa•41m ago•0 comments

Friday Facts #446 – An ARM and a Frame

https://factorio.com/blog/post/fff-446
1•robotnikman•41m ago•0 comments

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

https://arxiv.org/abs/2609.16247
2•1317•48m ago•0 comments

I Have Been a DelGuard

4•bh0k4l•52m ago•0 comments