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?

Death March (Project Management)

https://en.wikipedia.org/wiki/Death_march_(project_management)
2•Austin_Conlon•3m ago•0 comments

Apache Fory JSON: JSON Serialization for Java, 10x faster than Jackson

https://fory.apache.org/blog/fory_json_fastest_java_json_framework/
1•theanonymousone•6m ago•0 comments

YouTube sets Made For Kids flag on inappropriate video,won't let owner change it

https://twitter.com/nihaho13/status/2087317049278075130
1•Nition•6m ago•0 comments

The poverty of anti-tech thought

https://www.noahpinion.blog/p/the-poverty-of-anti-tech-thought
1•Ariarule•6m ago•0 comments

Show HN: Lethe is a portable identity layer – user consented

https://lethe-ai.vercel.app
1•NamanaManohar•18m ago•0 comments

Mark Zuckerberg: The Future Is for Everyone

https://about.fb.com/news/2026/08/the-future-is-for-everyone/
2•nedruod•22m ago•0 comments

Meta can't stop states' $1.4T lawsuit from going to trial

https://arstechnica.com/tech-policy/2026/08/meta-cant-stop-states-1-4-trillion-lawsuit-from-going...
3•oenton•25m ago•1 comments

World Encyclopaedia of Puppetry Arts

https://wepa.unima.org/en/
2•nephihaha•25m ago•0 comments

Rootless Container Sandbox for Claude Code and Codex

https://www.reddit.com/r/ClaudeAI/comments/1vm2w0e/a_lightweight_rootless_container_sandbox_for/
1•syumei•29m ago•0 comments

CVE-2026-53361 AF_Unix GC vs. MSG_PEEK use-after-free container escape

https://github.com/sgkdev/bad_garbage
3•eyberg•30m ago•0 comments

DoorDash Flux: Delegating Engineering Work to Cloud Based Agents

https://careersatdoordash.com/blog/delegating-engineering-work-to-cloud-based-agents/
1•rayval•30m ago•0 comments

DARPA heavy lift challenge ends with winner at a 3.84:1 payload to weight ratio

https://dronexl.co/2026/08/10/darpa-lift-challenge-results-avidrone/
2•daau•34m ago•0 comments

LSPs for LLMs

https://ianbarber.blog/2026/08/11/lsps-for-llms/
1•matt_d•35m ago•0 comments

Hannah Arendt's American Education

https://www.newyorker.com/magazine/2026/08/17/hannah-arendt-life-of-the-mind-thomas-meyer-book-re...
2•mitchbob•37m ago•1 comments

Supreme Computation – Fail-closed governance for AI execution

https://github.com/KnowledgeeKZA3224/scqos-reference-implementation
1•Knowledgee_KZA•37m ago•0 comments

Trump's childhood vaccine order: what it does and what doctors say

https://www.reuters.com/legal/litigation/trumps-childhood-vaccine-order-what-it-does-what-doctors...
2•gverrilla•38m ago•0 comments

Ask HN: How do you handle uncertain GPU capacity needs months in advance?

1•plainviewinstru•42m ago•0 comments

Spy cameras on Royal Navy drones sent data to China

https://www.telegraph.co.uk/news/2026/08/09/spy-cameras-on-navy-drones-secretly-sent-data-to-china
3•delichon•42m ago•0 comments

Show HN: DisplayWave – open-source and simple tool for Mac display management

https://github.com/kah-ve/DisplayWave
1•warpbin•46m ago•0 comments

Show HN: Memftprt, a consistent, process-tree-wide memory footprint on Linux

https://github.com/menzew/memoryfootprint
1•benzewdu•51m ago•0 comments

Measuring the Wrong Thing: Internal Harmfulness Scores Anti-Rank Successful

https://arxiv.org/abs/2608.09624
1•sbulaev•54m ago•0 comments

I built a PII pdf parser for your agent

https://www.pdfagent.net/
2•mattmerrick•56m ago•1 comments

Male redback spider's dramatic death somersault during sex coded in its DNA

https://www.abc.net.au/news/science/2026-08-12/redback-spiders-backflip-katipo-sex/107022976
4•Gaishan•56m ago•0 comments

Move 37 Is the Moment AI Changes Everything. It's Suddenly Happening Everywhere

https://www.wsj.com/tech/ai/move-37-ai-demis-hassabis-google-deepmind-alphago-ec832a41
4•RyanShook•56m ago•0 comments

Dogs can tell when you're happy, sad or frustrated

https://www.washingtonpost.com/lifestyle/2026/08/11/dogs-can-tell-when-you-happy-scared-or-sad-ne...
5•wslh•57m ago•3 comments

Crew, a multiplayer workspace for humans and AI agents to work together

https://github.com/JamelHammoud/crew
2•alihammoud21•1h ago•0 comments

The 7T AI Gamble Is Failing. Big Tech Is Trapped

https://www.youtube.com/watch?v=OunJtLnyPT4
5•cable2600•1h ago•0 comments

The StubHub Customers Who Battled for Tickets–and Battle Harder for a Refund

https://www.wsj.com/business/stubhub-tickets-resell-refund-de5ef8c3
2•fortran77•1h ago•1 comments

Talk to ELIZA

https://findingeliza.org/try.html
3•droidjj•1h ago•0 comments

Statin use vs. death rate from cardiovascular diseases (2019)

https://ourworldindata.org/grapher/statin-use-cardiovascular-disease-death-rate
7•js2•1h ago•1 comments