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

You can now run a full Linux operating system inside a 6mb PDF

https://twitter.com/oliviscusAI/status/2038563166431346865
1•matthewsinclair•4m ago•1 comments

Show HN: Provero – Data quality checks in YAML, compiled to single SQL queries

https://github.com/provero-org/provero
1•andreahlert•5m ago•0 comments

Office EU: European-owned cloud based office suite

https://office.eu
1•koenraad•5m ago•0 comments

Tokens Are the New Oil: How China Is Quietly Winning the AI Economy

https://thamizhelango.medium.com/tokens-are-the-new-oil-how-china-is-quietly-winning-the-ai-econo...
1•KnuthIsGod•7m ago•0 comments

The United States has become a rogue state

https://www.washingtonpost.com/ripple/2026/03/26/united-states-trump-rogue-state-iran/
1•hkhn•7m ago•0 comments

Show HN: Tiny Axios Alternative, Fch

https://www.npmjs.com/package/fch
1•franciscop•8m ago•0 comments

Our AI traced the axios NPM attack and found how the payload hid itself

https://app.strix.ai/share/chats/NDIxNzZiMTItZWQ2My00NDY4LWIzYzUtNDEyZDgyMWI1YjYzLm1uZTJldnQ0LkVt...
1•ahmedallam2•8m ago•0 comments

What is 'tokenomics' and how would China gain the edge

https://www.scmp.com/tech/big-tech/article/3347495/how-china-could-dominate-ai-eras-tokenomics-va...
1•KnuthIsGod•8m ago•0 comments

Delve – Fake Compliance as a Service – Part II

https://substack.com/home/post/p-192665132
1•theahura•11m ago•0 comments

California to impose new AI regulations in defiance of Trump call

https://www.theguardian.com/us-news/2026/mar/30/california-ai-regulations-trump
1•thm•12m ago•0 comments

Anthropic, The Pentagon, and the Future of Autonomous Weapons

https://www.bloomberg.com/news/articles/2026-03-28/anthropic-s-fight-with-us-military-over-future...
1•KnuthIsGod•13m ago•1 comments

Show HN: An AI Operating System

https://getariaos.com/
1•juniormpakou•20m ago•1 comments

Archive review: a gorgeous sci-fi movie that fails the Black Mirror test (2020)

https://www.polygon.com/2020/7/10/21320614/archive-review-vod-movie-theo-james-stacy-martin-westw...
1•walterbell•21m ago•0 comments

What to Know About California's Executive Order on A.I

https://www.nytimes.com/2026/03/30/technology/california-ai-executive-order.html
2•y1n0•21m ago•0 comments

Tropical geckos are more adaptable than we thought

https://phys.org/news/2026-03-tropical-geckos-australia-thought.html
1•y1n0•22m ago•0 comments

Purple Lifeform Photographed Sprouting 'Tentacles' on the ISS

https://www.sciencealert.com/purple-lifeform-photographed-sprouting-tentacles-on-the-iss
2•y1n0•23m ago•0 comments

Pairs of atoms observed existing in two places at once for the first time

https://phys.org/news/2026-03-pairs-atoms.html
1•arunc•25m ago•0 comments

Americans Have Never Been All That Excited About Going to the Moon

https://www.nytimes.com/2026/03/30/science/nasa-astronauts-moon-americans-mood.html
2•mmooss•25m ago•0 comments

Claude usage limits hitting faster than expected

https://old.reddit.com/r/ClaudeCode/comments/1s7zg7h/investigating_usage_limits_hitting_faster_than/
5•Austin_Conlon•26m ago•0 comments

The mindbending 'cyberpunk city' in China that exists on so many levels

https://www.cnn.com/travel/chongqing-china-tourism-cyberpunk-city-intl-hnk
2•1659447091•28m ago•0 comments

AI Tools Directory – Verified Anti-Hallucination SEO Tools – LogicBalls

https://logicballs.com
1•mohitsingh01•30m ago•0 comments

How fast can algorithms advance capabilities?

https://epoch.ai/gradient-updates/how-fast-can-algorithms-advance-capabilities
1•jxmorris12•31m ago•0 comments

Vaping likely to cause lung and oral cancer, Australian researchers find

https://www.theguardian.com/australia-news/2026/mar/31/vaping-lung-cancer-risk
1•sandebert•31m ago•0 comments

Artemis II mission countdown clock started

https://www.nasa.gov/blogs/missions/2026/03/30/nasas-artemis-ii-launch-mission-countdown-begins/
3•d_silin•33m ago•0 comments

Naive (YC S25) forked a 41K-star MIT project and is selling it as their own

https://not-so-naive.vercel.app
3•not-chatgpt•36m ago•0 comments

Show HN: A shot tracking app for hockey teams

https://github.com/dvelton/hockey-shot-tracker
3•deevelton•42m ago•1 comments

Supply Chain Attack on Axios Pulls Malicious Dependency from NPM

https://socket.dev/blog/axios-npm-package-compromised
1•dsr12•43m ago•0 comments

HK police can now demand phone passwords under new national security rules

https://www.bbc.com/news/articles/ce8j9yj52lro
4•jen729w•43m ago•1 comments

Semantic – Reducing LLM "Agent Loops" by 27.78% via AST Logic Graphs

https://github.com/concensure/Semantic
16•concensure•48m ago•1 comments

Ask HN: Gemini CLI vs. Claude Code

3•elC0mpa•49m ago•0 comments