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?

AI-based "tissue clocks" can estimate the biological age of organs from images

https://cemm.at/news/detail/organs-age-at-different-speeds-a-blood-test-might-soon-tell-which-ones
1•giuliomagnifico•2m ago•0 comments

Artificial Ignorance: The Political Falsehoods of Leading AIs

https://www.justfacts.com/news_artificial_ignorance_political_falsehoods_leading_ais
1•vixen99•3m ago•0 comments

Show HN: TidsOS – a private cloud OS for office PCs that sleep and roam

https://github.com/santoputhoor/tidsos
1•Santoputhoor•3m ago•0 comments

Musk says French Greens' presidential candidate should be 'shut down'

https://www.politico.eu/article/elon-musk-says-french-greens-marine-tondelier-shut-down/
1•vrganj•4m ago•0 comments

Codex hit 15M users four months early

https://aicharts.grok.me/c/codex-growth
1•echohive42•4m ago•1 comments

PBS station fears losing 50TB of data after being ghosted by cloud storage prov

https://arstechnica.com/information-technology/2026/08/pbs-station-fears-losing-50tb-of-data-afte...
1•joozio•5m ago•0 comments

Open Commonplace – Protecting knowledge from being generalized by AI

1•VishnuShayeq01•11m ago•0 comments

An Anti-Sceptical Metaphysics and Epistemology of Perception

https://www.cambridge.org/core/elements/an-antisceptical-metaphysics-and-epistemology-of-percepti...
1•XzetaU8•13m ago•0 comments

OpenAI and Anthropic in price war as Chinese AI rivals gain ground

https://arstechnica.com/ai/2026/08/openai-and-anthropic-in-price-war-as-chinese-ai-rivals-gain-gr...
2•joozio•15m ago•1 comments

OpenAI upheaval mounts as Sam Altman readies IPO push

https://www.ft.com/content/53082739-7714-4aae-9816-e55ab423cbee
2•bazzmt•19m ago•0 comments

Every Check Was Green. Five Guarantees Were Not

https://ai2rules.dev/blog/every-check-was-green/
1•sv-pro•26m ago•1 comments

Ask HN: Could Anthropic's watermark be much simpler than we think?

1•CITIZENDOT•32m ago•0 comments

z486: A 486-Class Pipelined FPGA CPU with Integrated Floating-Point

https://nand2mario.github.io/posts/2026/z486/
2•matt_d•40m ago•0 comments

Preparing GLM-5.3 for Open Release: A Responsible Path to Cyber Defense

https://twitter.com/Zai_org/status/2088280509474320693
2•pretext•45m ago•0 comments

Compatibility Testing Pulumi HCL

https://www.pulumi.com/blog/compatibility-testing-pulumi-hcl/
1•cnunciato•47m ago•0 comments

Malaysia to launch palm oil-based immersion cooling fluid for data centers

https://www.datacenterdynamics.com/en/news/malaysia-to-launch-palm-oil-based-immersion-cooling-fl...
2•01-_-•48m ago•0 comments

Microsoft Walks Away from China

https://247wallst.com/investing/2026/08/14/microsoft-walks-away-from-china/
1•01-_-•49m ago•0 comments

Spain extends largest nuclear plant in policy U-turn

https://www.yahoo.com/news/politics/articles/spain-extends-largest-nuclear-plant-104423761.html
1•mpweiher•50m ago•0 comments

Get to Know David, Alice, Bob, Jack and Sara [Agents] [video]

https://www.youtube.com/watch?v=zAOcfDu5vp0
1•rodmena•50m ago•0 comments

Show HN: Bernstein – run 44 CLI coding agents from one deterministic scheduler

https://github.com/sipyourdrink-ltd/bernstein
1•alex_chernysh•58m ago•0 comments

Show HN: Local Duolingo like course authoring for independent creators

https://www.asakiri.com/
2•alekoiz•1h ago•1 comments

GLM-5.3: How Chinese labs keep stride with the frontier

https://www.interconnects.ai/p/glm-53-how-chinese-labs-keep-stride
3•tosh•1h ago•0 comments

How to ship a database every day

https://turbopuffer.com/blog/control-plane
1•samuel246•1h ago•0 comments

Google Opens the Gates of AI Slop Hell

https://gizmodo.com/google-opens-the-gates-of-ai-slop-hell-2000798888
4•ochrist•1h ago•2 comments

Tankers Are Going Dark for Longer to Get Oil Out of Middle East

https://www.bloomberg.com/news/articles/2026-08-14/tankers-are-going-dark-for-longer-to-get-oil-o...
1•tosh•1h ago•0 comments

The Embedder's Dilemma: LLMs Are Better, but at What Cost?

https://arxiv.org/abs/2608.12875
1•sbulaev•1h ago•0 comments

Show HN: Riffn. An instant voice link with your AI agents and local models

https://riffn.io/how-riffn-works/
2•riffn•1h ago•0 comments

"That's not SOC 2 compliant"

https://ampcode.com/notes/thats-not-soc-2-compliant
31•tosh•1h ago•14 comments

Ask HN: How do you keep up with HN these days?

27•simonebrunozzi•1h ago•40 comments

Mycorrhizal Infrastructure Map

https://a-hidden-infrastructure.spun.earth/map
1•num42•1h ago•0 comments