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?

The Claude Code Leak

https://build.ms/2026/4/1/the-claude-code-leak/
1•mergesort•2m ago•0 comments

Show HN: Hybro – unify local and remote AI agents in a single agent network

https://hybro.ai
1•kevinlu•3m ago•0 comments

Arcee-AI Trinity-Large-Thinking

https://huggingface.co/arcee-ai/Trinity-Large-Thinking
1•kristianp•3m ago•0 comments

April Fools' Day on the Web 2026

https://aprilfoolsdayontheweb.com/2026.html
1•jshprentz•8m ago•0 comments

Solar Balconies Take Europe by Storm

https://hackaday.com/2026/03/31/solar-balconies-take-europe-by-storm/
2•lxm•11m ago•0 comments

OpenRouter Introduces Arcee Trinity Large Thinking [video]

https://www.youtube.com/watch?v=Gc82AXLa0Rg
1•kristianp•12m ago•0 comments

Trinity Large Thinking

https://openrouter.ai/arcee-ai/trinity-large-thinking
2•kristianp•13m ago•1 comments

A Cat-and-Mouse Game of Russian Internet Restrictions and Evasion

https://www.nytimes.com/2026/03/31/world/europe/russia-internet-restrictions.html
1•lxm•13m ago•0 comments

Perplexity Says MCP Sucks

https://suthakamal.substack.com/p/perplexity-says-mcp-sucks
5•suthakamal•27m ago•1 comments

Why Swedish Schools Are Bringing Back Books

https://undark.org/2026/04/01/sweden-schools-books/
3•ohjeez•32m ago•0 comments

SpaceX Confidentially Files for US IPO with SEC

https://catenaa.com/markets/equities/spacex-confidentially-files-for-us-ipo-with-sec/
1•Murugaverl•32m ago•0 comments

The Startup That Used AI and OpenClaw to Automate Its Own Developers

https://www.wsj.com/tech/ai/meet-the-startup-that-used-ai-and-openclaw-to-automate-its-own-develo...
1•petethomas•33m ago•0 comments

A history of how high humanity has reached

https://www.abc.net.au/news/2026-04-02/the-artemis-ii-mission-to-the-moon/106300532
1•phocks•35m ago•0 comments

NASA's Artemis II Live Mission Coverage (Official Broadcast) [video]

https://www.youtube.com/watch?v=m3kR2KK8TEs
1•elsewhen•36m ago•1 comments

The Document Foundation's comment about the Collabora blog post

https://blog.documentfoundation.org/blog/2026/04/01/comment-about-collabora-blog-post/
1•lawrencejgd•37m ago•0 comments

Weather.com/Retro

https://weather.com/retro/
5•typeofhuman•40m ago•0 comments

MCP Server turned my NAS into a self-hosted AI assistant

https://www.xda-developers.com/this-mcp-server-turned-my-nas-into-a-self-hosted-ai-assistant/
1•saligne•41m ago•0 comments

Parasitic sleeping sickness creates 'invisibility cloak' to hide for years

https://www.popsci.com/health/sleeping-sickness-invisibility-cloak/
2•gmays•41m ago•0 comments

Field Amoeba – virtual creature simulation [video]

https://www.youtube.com/watch?v=I3Y9OdjFqRs
1•graphai•43m ago•1 comments

Organizations Using AI Are Confusing Temporary Friction with Permanent Safety

https://www.sentinelone.com/blog/the-implementation-blind-spot-why-organizations-are-confusing-te...
1•walterbell•50m ago•0 comments

Claude Code No Flicker Mode

https://twitter.com/bcherny/status/2039421575422980329
1•tzury•51m ago•0 comments

From Viral Sensation to Feature Film: Kane Parsons' 'The Backrooms'

https://nofilmschool.com/backrooms-trailer
2•firasd•57m ago•0 comments

The Genuine Sieve of Eratosthenes (2009) [pdf]

https://www.cs.hmc.edu/~oneill/papers/Sieve-JFP.pdf
1•susam•57m ago•0 comments

M 7.4 – 126 km WNW of Ternate, Indonesia

https://earthquake.usgs.gov/earthquakes/eventpage/us6000slss/executive
1•gnabgib•57m ago•1 comments

Mercor AI Breached via LiteLLM

https://xcancel.com/AlvieriD/status/2038779690295378004#m
1•measurablefunc•1h ago•0 comments

Slack deleted a large amount of workspaces

https://old.reddit.com/r/Slack/comments/1s9we70/workspace_deleted/
4•tifan•1h ago•1 comments

This Month in Ladybird – March 2026

https://ladybird.org/newsletter/2026-03-31/
3•exploraz•1h ago•0 comments

We asked seven AI models to do a simple task. Instead, they defied instructions

https://twitter.com/dawnsongtweets/status/2039451083005977009
4•tristanj•1h ago•1 comments

Es-toolkit: A lodash replacement that's 97% smaller and 2x faster

https://toss.tech/article/es-toolkit
2•bboydart•1h ago•0 comments

The Grammar at the Threshold of Its Own Execution

https://jimiwen.substack.com/p/si-wu-zi-acb
2•jimiwen•1h ago•0 comments