frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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•11mo 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•11mo 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?

IOU Wallet – The Integrity Protocol

https://iou-wallet.com/
1•xklondon•59s ago•0 comments

Mars rover detects never-before-seen organic compounds in new experiment

https://phys.org/news/2026-04-mars-rover-compounds.html
1•benkan•1m ago•0 comments

A $4M Tomahawk Missile for a Cupcake Recipe

https://briannelee.substack.com/p/a-4-million-tomahawk-missile-for
1•BrianneLee011•2m ago•0 comments

What's new in Firefox mobile: Less clutter, more control, a free built-in VPN

https://blog.mozilla.org/en/firefox/mobile-updates/
1•Brajeshwar•2m ago•0 comments

Ubuntu 26.04 ("Resolute Raccoon") LTS released

https://lists.ubuntu.com/archives/ubuntu-announce/2026-April/000323.html
2•arunc•4m ago•0 comments

SLIT3 fragments orchestrate thermogenesis in brown adipose tissue

https://www.nature.com/articles/s41467-026-70310-9
1•PaulHoule•4m ago•0 comments

Phone's next speed boost may come from a magnetic jump

https://phys.org/news/2026-04-boost-strange-magnetic-rewrites-chips.html
2•benkan•5m ago•0 comments

Prax: An agent runtime that learns from past mistakes and fixes code in a loop

https://github.com/praxagent/praxagent-ai
1•steveharing1•5m ago•0 comments

Tushonka: Cultivating Soviet Postwar Taste (2010)

https://www.journal.media-culture.org.au/index.php/mcjournal/article/view/299
1•theletterf•6m ago•0 comments

Show HN: Universal Deploy – deploy Vite apps anywhere

https://vike.dev/blog/universal-deploy
1•brillout•6m ago•0 comments

LINK+ Union Catalog

https://linkencore.iii.com/iii/encore/;jsessionid=8C30815031D934FAD58626FBCD329593?lang=eng
1•so-cal-schemer•9m ago•2 comments

Sexism, hate and misogyny remain for this soccer trailblazer

https://www.cnn.com/2026/04/23/sport/marie-louise-eta-union-berlin-woman-coach-bundesliga
1•Tomte•9m ago•0 comments

You're about to feel the AI money squeeze

https://www.theverge.com/ai-artificial-intelligence/917380/ai-monetization-anthropic-openai-token...
1•quicklywilliam•9m ago•1 comments

O'Reilly for Public Libraries [video]

https://www.youtube.com/watch?v=HOsOTawdWFc
1•so-cal-schemer•10m ago•1 comments

France Keeps Breaking the Internet to Stop Piracy, Even Though It's Not Working

https://www.techdirt.com/2026/04/23/france-keeps-breaking-the-internet-to-stop-piracy-even-though...
2•hn_acker•13m ago•0 comments

Turning a Stripe subscription into a bot-buyable API

https://dialtoneapp.com/2026/april/turning-a-stripe-subscription-into-a-bot-buyable-api
1•fcpguru•15m ago•0 comments

Show HN: AgentSearch – Self-hosted search and MCP for AI agents, no API keys

https://github.com/brcrusoe72/agent-search
1•bricrusoe•16m ago•0 comments

Jazz v2: A local-first relational database

https://jazz.tools/blog/what-is-jazz
1•pegasus•16m ago•0 comments

GPT-5.5 System Card [pdf]

https://deploymentsafety.openai.com/gpt-5-5/gpt-5-5.pdf
4•craigmart•16m ago•0 comments

113 issues were identified within Rust Coreutils

https://discourse.ubuntu.com/t/an-update-on-rust-coreutils/80773
2•maxloh•17m ago•0 comments

98% of IT leaders want digital sovereignty: SUSE is making it happen

https://www.zdnet.com/article/suse-bets-its-future-on-digital-sovereignty/
2•CrankyBear•18m ago•0 comments

NASA rover adds to growing list of organic compounds detected on Mars

https://www.cbc.ca/news/science/nasa-mars-curiosity-rover-life-organic-compounds-9.7172210
3•Brajeshwar•20m ago•0 comments

Middle Eastern News Sites Are U.S. Government Propaganda Ops

https://theintercept.com/2026/04/20/pentagon-middle-eastern-news-propaganda-iran/
5•robtherobber•21m ago•0 comments

Earth's First Personal Robocar

https://www.tensor.auto/
2•probabletrain•21m ago•0 comments

Astrology information for markets now in an API

https://api.starsignal.io
2•dianahcastillo•21m ago•0 comments

The agent observability gap: what logs miss when LLMs call tools

https://www.lyuata.com/observability-gap
3•lyuata•22m ago•0 comments

How metrics are stored and queried

https://www.bitsxpages.com/p/how-metrics-are-stored-and-queried
5•agavra•23m ago•0 comments

GPT-5.5: Mythos-Like Hacking, Open to All

https://xbow.com/blog/mythos-like-hacking-open-to-all
4•rs_rs_rs_rs_rs•24m ago•0 comments

Ask HN: Demonstrating Value with the Same Tools

3•intervolz•25m ago•0 comments

Archive.today used vistor's browsers to DDoS, and modified archive contents

https://en.wikipedia.org/wiki/Wikipedia:Requests_for_comment/Archive.is_RFC_5
3•crumpled•26m ago•2 comments