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?

Cerebras and Oracle Team Up to Bring Cerebras AI Inference to OCI

https://www.cerebras.ai/press-release/cerebras-and-oracle-team-up-to-bring-cerebras-ai-inference-...
1•6thbit•28s ago•0 comments

Show HN: AperFolio – a portfolio for every camera and lens you own, from EXIF

https://apps.apple.com/us/app/aperfolio/id6809083914
1•rufusguo•1m ago•0 comments

Reducibility Among Combinatorial Problems (1972) [pdf]

https://cgi.di.uoa.gr/~sgk/teaching/grad/handouts/karp.pdf
1•liamswayne•2m ago•0 comments

'I Felt Blind Panic.' They Opened Their New $2k iPhone Duo–and It Broke

https://www.wsj.com/tech/personal-tech/iphone-duo-broken-hinge-screen-31b2b28a
2•fortran77•3m ago•1 comments

Oracle Brings Google TPUs to Oracle Cloud Infrastructure

https://www.oracle.com/news/announcement/ai-world-oracle-brings-google-tpus-to-oracle-cloud-infra...
1•6thbit•3m ago•0 comments

Daemonarchy: The Omarchy Desktop on FreeBSD

https://github.com/jordanhubbard/daemonarchy
1•theanonymousone•5m ago•0 comments

US insurance regulators back down on credit ratings scrutiny

https://www.ft.com/content/4a12c55c-40d1-4e91-990b-3adc51b85912
1•JumpCrisscross•5m ago•0 comments

Elon Musk Just Dumped Another $76M into the Midterms

https://www.wired.com/story/elon-musk-just-dumped-another-dollar76-million-into-the-midterms/
3•xyzal•5m ago•1 comments

Dataset of 50k AI generated "podcasts"

https://www.kaggle.com/datasets/listennotes/ai-generated-fake-podcasts-spams
1•wenbin•5m ago•0 comments

Brace for Impact: Protecting People and the Economy When the AI Bubble Bursts

https://www.openmarketsinstitute.org/publications/report-brace-for-impact-protecting-people-and-t...
1•Refreeze5224•6m ago•0 comments

Show HN: Freightfloor. Have 3 minutes? Drive a forklift vs. AI

https://freightfloor.com
1•davenportjw•6m ago•0 comments

Visiting card

https://en.wikipedia.org/wiki/Visiting_card
3•skibz•8m ago•0 comments

Introducing Calendars, Contacts and Files in Stalwart

https://stalw.art/blog/collaboration/
1•thunderbong•9m ago•1 comments

Softerware

https://nadeeshacabral.com/posts/softerware/
1•lunarcave•9m ago•0 comments

Turn 40: benchmarking voice agents over a long session

https://presence.bohita.com/posts/what-happens-on-turn-forty
1•riddleronroof•10m ago•0 comments

Aulico: Learn to Invest with AI

https://www.aulico.com
1•rendernos•11m ago•0 comments

Ask HN: T'was the night of Claude Reset and quota left: Funniest app you built?

3•julianpye•13m ago•0 comments

Show HN: Crulon – Business phone where AI does the work, humans make the calls

https://crulon.ai/#talk
1•rayn11•14m ago•0 comments

Show HN: Aigent-OS, a Claude Code harness that clears and resumes

https://github.com/wrg32786/aigent-os
1•wrg32786•14m ago•0 comments

Two RTX 5090 hosts sharing a KV cache over Ethernet

https://viiwork.pulu.app/blog/kv-share-two-5090-hosts/
2•velmu•14m ago•0 comments

Infisical raises $40M Series B led by Elad Gil

https://infisical.com/blog/series-b
2•FinnLobsien•14m ago•0 comments

OpenAI expands partnership with Oracle to bring its apps to ChatGPT

https://openai.com/index/oracle-apps-in-chatgpt/
1•6thbit•15m ago•0 comments

Apple introduces the new 14‑inch MacBook Pro with M6

https://www.apple.com/in/newsroom/2026/10/apple-introduces-the-new-14-inch-macbook-pro-with-m6/
14•beex•16m ago•2 comments

Show HN: Weir – Catch credential leaks in the AI agents you build and use

https://github.com/IdoGol24/weir
3•CodeNinja778•17m ago•1 comments

Genie 4

https://deepmind.google/blog/genie-4-a-new-generation-of-world-simulation/
36•acossta•18m ago•10 comments

A.I.’s Rogue Behavior Starts With Its Training

https://www.nytimes.com/interactive/2026/10/26/technology/ai-agent-hacks-training.html
1•tysone•19m ago•0 comments

Can AI draw San Francisco from memory?

https://voygr.tech/blog/can-ai-draw-san-francisco-from-memory/
1•chippy•20m ago•0 comments

Show HN: Formstep, Request information from customers without the back-and-forth

https://formstep.io/
1•mellosty•21m ago•0 comments

Why Pascal's Wager Implies I Should Believe I Am Being Gangstalked by the CIA

https://morewrong.lol/?post=pascal-wager-cia-gang-stalking
2•paulnpace•22m ago•1 comments

A few of my favorite software documentaries

https://nate.spot/software-documentaries/
1•fargoth•22m ago•1 comments