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?

GameBoy Emulator on E-Ink [video]

https://www.youtube.com/watch?v=oPbOK90aJEo
1•toomim•46s ago•0 comments

Tau – Learn how coding agents are built

https://twotimespi.dev
1•lemming•5m ago•0 comments

Show HN: Embeddable Cumulative Crates Download History

https://cratesdownloadhistory.undivisible.dev/
1•undivisible•5m ago•0 comments

Show HN: PDF Insight – local-first AI that sorts your PDFs on-device

https://pdf-insight.com/
1•jacoblav•7m ago•0 comments

Getting the B.l.o.a.t. (Best liver of all time)

https://sull1van.com/best-liver-of-all-time
1•s3p•11m ago•0 comments

Foray – AI that generates a complete business blueprint and stress-tests ur idea

https://www.getforay.ai/
1•foray-ai•12m ago•0 comments

Memory Safe Context Switching (longjmp, setjmp) in Fil-C

https://fil-c.org/context_switches
2•modeless•17m ago•0 comments

'News' Site Keeps Hallucinating EFF Staffers

https://www.eff.org/deeplinks/2026/06/news-site-keeps-hallucinating-eff-staffers
2•speckx•17m ago•1 comments

Large language models and the textual nude

https://plus.flux.community/p/large-language-models-and-the-textual
2•milosstich•20m ago•0 comments

TPG boss to enter guilty plea and seek leniency

https://www.afr.com/companies/financial-services/tpg-boss-to-enter-guilty-plea-and-seek-leniency-...
1•Alien1Being•20m ago•0 comments

Chinese Hedge Funds Warn the AI 'Super Bubble' Is Ready to Burst

https://www.bloomberg.com/news/articles/2026-06-26/chinese-hedge-funds-warn-the-ai-super-bubble-i...
1•cdrnsf•21m ago•0 comments

Tidal Says It Won't Pay Royalties for AI-Generated Music

https://www.404media.co/tidal-says-it-wont-pay-royalties-for-ai-generated-music/
2•cdrnsf•22m ago•3 comments

Show HN: AMA2, messenger built for AI agent

https://ama2.me/
1•ejhooooon•22m ago•0 comments

Devin Fusion: Frontier Performance at 35% Lower Cost

https://cognition.com/blog/devin-fusion#examples-of-sidekick-in-action
1•qainsights•25m ago•0 comments

LongCat-2.0, a large-scale MoE model with 1.6T total and 48B Active

https://longcat.chat/blog/longcat-2.0/
1•benjiro29•25m ago•0 comments

What any website can see about you

https://mysysinfo.com
2•rajsuper123•34m ago•0 comments

Show HN: Dribble – an open-source AI IDE for databases

https://github.com/azhakhan/dribble
1•ayazhan•39m ago•0 comments

Same Product, Same Store, but on Instacart, Prices Might Differ

https://www.nytimes.com/2025/12/09/business/instacart-algorithmic-pricing.html
2•airhangerf15•49m ago•0 comments

Open Memory Protocol – One Memory Store for Claude, ChatGPT, Curso

https://github.com/SMJAI/open-memory-protocol
3•soji_mathew•50m ago•0 comments

Show HN: A temporal engine for dual calendar synchronization (50k years)

https://jolly-lab-1d2f.cherlokrobin.workers.dev/
1•Cherlokrobin•51m ago•1 comments

Linux Antiquity

https://github.com/diinki/linux-antiquity
1•igmn•56m ago•1 comments

Self hosting the modern AI stack could be the way forward

https://github.com/raiyanyahya/llmaker
4•sleepynoodle•56m ago•0 comments

The Impossibility of Mitigating AI Jailbreaks

https://reliable-ai.review/posts/2026-05-priviledge_erosion/
2•NickySlicks•59m ago•0 comments

Show HN: A Firewall for AI agents with auditing

https://github.com/beebeeVB/trajeckt/
1•beebeeVB•1h ago•0 comments

Show HN: Yocto/BitBake skills that make AI agents check official docs

https://github.com/Higangssh/yocto-agent-skills
2•swq115•1h ago•0 comments

GemCities – Free Gemini:// capsule hosting

https://gemcities.com/
2•rickcarlino•1h ago•0 comments

Memora: A Harmonic Memory Representation Balancing Abstraction and Specificity

https://www.microsoft.com/en-us/research/blog/memora-a-harmonic-memory-representation-balancing-a...
4•matt_d•1h ago•0 comments

How to Optimize Tools for Agents

1•Tanxsinxlnx•1h ago•0 comments

Show HN:Earned vs. Burned, Claude skill for measuring AI delivery value

https://github.com/harveer10x/earned-vs-burned-skill
1•harveer10x•1h ago•0 comments

Brain2Qwerty v2 – Meta's non-invasive brain-computer interface

https://facebookresearch.github.io/brain2qwerty/
3•GracefullyShot•1h ago•0 comments