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?

Learning as Freedom (2012)

https://www.nytimes.com/2012/09/06/opinion/john-deweys-vision-of-learning-as-freedom.html
1•alasr•1m ago•1 comments

AI devours a fifth of companies' IT budgets

https://www.computerworld.com/article/4239898/ai-accounts-for-one-fifth-of-companies-it-budgets.html
2•mikelgan•3m ago•0 comments

Why have coding agents not brought easter-egg utopia?

https://rallywith.ai/blog/bring-back-easter-eggs/
1•ajuhasz•5m ago•0 comments

HumanLayer is now Open Source

https://www.hlyr.dev/blog/open-sourcing-humanlayer
1•dhorthy•6m ago•0 comments

AI Just Raised the Stakes on Continuous Delivery

https://www.bradoyler.com/ai/continuous-delivery-is-a-security-feature/
1•bradoyler•10m ago•0 comments

Window Heat Pumps Offer Efficient Heating and Cooling Without Ductwork

https://www.wsj.com/business/energy-oil/window-heat-pumps-heating-cooling-fd552926
1•bookofjoe•10m ago•1 comments

Factorio version 2.1, the final major update for the game, has been released

https://factorio.com/blog/post/fff-449
2•haunter•11m ago•0 comments

Ritmo: Type-safe ECS runtime for TypeScript

https://ritmo.typeonce.dev/
1•sandromaglione•15m ago•0 comments

Bitter Lessoned in Automated Theorem Proving

https://essays.johnloeber.com/p/34-bitter-lessoned-in-automated-theorem
1•loeber•16m ago•0 comments

One Man's Pan Am 747 Replica [video]

https://www.youtube.com/watch?v=vAFwHGGfPz4
1•Teever•17m ago•0 comments

Zedis v0.2.0

https://github.com/barddoo/zedis/releases/tag/v0.2.0
1•barddoo•20m ago•0 comments

Empirical agents with hard constraints, strict isolation and trusty protocols

https://qip.dev/essays/empirical-agents-with-hard-constraints-strict-isolation-trusty-protocols
1•codesparkle•20m ago•0 comments

Show HN: Token Beggar, route coding agent subtasks to cheaper models

https://github.com/Arthur031221/Token-Beggar
1•levi74108520963•26m ago•0 comments

Show HN: AiSniff, underline the phrases in a text that read like AI wrote them

https://github.com/Arthur031221/AiSniff
1•levi74108520963•27m ago•0 comments

Show HN: I trained a 160M code model on one GPU and got 22.56% on HumanEval

https://jakubcwirlej.com/ai-dev/
1•jakcwi•27m ago•0 comments

The Hackening

https://thezvi.substack.com/p/the-hackening
1•7777777phil•28m ago•0 comments

Proton hosts map of 300k Flock devices amid legal threats

https://cyberinsider.com/proton-flock-map/
3•DeepLogin•29m ago•0 comments

TechTwitter – For when you want to keep up, but don't like Elon

https://techtwitter-lime.vercel.app/
1•SpyCoder77•29m ago•0 comments

"Slow Horses," Apple TV's Best Show

https://www.newyorker.com/culture/on-television/slow-horses-apple-tvs-best-show-retains-its-punge...
1•amrrs•30m ago•0 comments

Show HN: CAS-X – An input-dominant recursive filter (8.5x recovery acceleration)

1•richardaamaya•32m ago•0 comments

Show HN: CAS-X – An input-dominant recursive filter (8.5x recovery acceleration)

1•richardaamaya•33m ago•0 comments

Show HN: I gave Claude control of Photoshop

https://github.com/kathan3009/photoshop-mcp
1•kathan3009•33m ago•0 comments

Show HN: Automated newsletter built with Grok bot

https://news.devs.dev
1•westche2222•36m ago•0 comments

Show HN: libfpv - Modding FPV Drone into Any Game

https://hammerill.com/en/blog/libfpv
2•hammerill•37m ago•1 comments

AAS: The Metric for Monitoring DB Performance

https://www.kylehailey.com/post/setting-the-record-straight-a-comprehensive-guide-to-understandin...
1•b-man•37m ago•0 comments

Cveboard: Live Security Incidents

https://cveboard.org/
1•mneves75•37m ago•0 comments

Node2Shell vuln affected Python too

https://opensourcemalware.com/blog/node2shell-affects-python
2•6mile•37m ago•1 comments

White House Directly Intervened to Shut Down Epstein Files Probe

https://newrepublic.com/post/217060/white-house-intervened-shut-down-epstein-files-investigation
9•Betelbuddy•37m ago•0 comments

Show HN: Distributed, deterministically secure agentic swarm runtime. Enclawed

https://zenodo.org/records/23602948
1•enclawed•40m ago•0 comments

Show HN: Conference / expo / trade show finder plus MCP

https://www.conferencefindr.com
2•aeshang3•41m ago•0 comments