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?

New release of HugstonOne AI workstation, Whitepaper and benchs included [pdf]

https://hugston.com/HugstonOne_Enterprise_Whitepaper_2026.pdf
1•trilogic•1m ago•0 comments

Ask HN: HHoe Can I

1•reenorap•1m ago•0 comments

Beating Go's Encoding/JSON with Schema-Guided ProtoJSON

https://kmcd.dev/posts/benchmarking-protojsonx/
2•ingve•6m ago•0 comments

Show HN: Emem – External memory of the physical world for AI agents

https://github.com/Vortx-AI/emem
2•jaya2424•6m ago•0 comments

ZeroZ4j – A Opinionated Zero-Impedance Enterprise Java Architecture

https://www.zeroz4j.com
2•fschoning•6m ago•0 comments

Unmask – Bot challenge for stock Nginx that doesn't break Googlebot

https://github.com/unmask-sh/unmask
2•unmask•8m ago•0 comments

Artificial Life [video]

https://www.youtube.com/watch?v=2g-CrQfYNtE
2•surprisetalk•9m ago•0 comments

Meta's Infrastructure Team Needs a Culture Reset

https://newsletter.semianalysis.com/p/metas-infrastructure-team-needs-a
2•allenleee•10m ago•0 comments

What metadata would you use to indicate LLM generated text?

https://mastodon.social/@Edent/116963246879491202
3•mritzmann•13m ago•0 comments

Roblox will let people use AI to make games on their phone

https://www.theverge.com/games/966589/roblox-build-ai-phone-moblie-games
2•bookofjoe•13m ago•1 comments

Ask HN: Is it normal ChatGPT told me it was "literally smiling" for me?

2•ronbenton•14m ago•2 comments

Show HN: LX Coreutils – 72 Unix tools that pipe together, each backed by an LLM

https://github.com/BrunkenClaas/lx
2•BrunkenClaas•15m ago•0 comments

A detailed, layer-by-layer teardown of the mobile phone and its history

https://everythingmachine.io/phone/
2•E-Machine•15m ago•1 comments

Spend the AI Dividend on Quality

https://ronaknathani.com/blog/2026/07/spend-the-ai-dividend-on-quality/
2•speckx•15m ago•0 comments

Log is non-monotonous in PHP and Lua

https://purplesyringa.moe/blog/log-is-non-monotonous-in-php-and-lua/
2•haeseong•16m ago•0 comments

Security After Remote Attestation

https://www.liamcvw.com/p/security-after-remote-attestation
2•lcvw•16m ago•0 comments

An AI Model Escaped Its Eval and Breached Hugging Face. Every Step Was a Syscall

https://grith.ai/blog/openai-model-breached-hugging-face-eval-breakout
4•edf13•17m ago•0 comments

NMEMORY – A memory for AI agents that refuses to answer without evidence

https://github.com/menot-you/n-memory
2•tiago-im•18m ago•0 comments

Raku: A Language Where 0.1 and 0.2 is 0.3

https://andrewshitov.com/2026/07/18/raku-a-language-where-0-1-0-2-is-0-3/
3•speckx•21m ago•0 comments

France passes law banning under-15s from social media

https://www.bbc.com/news/articles/cq56l9p4y93o
2•1vuio0pswjnm7•21m ago•1 comments

Ukrainian drones hit more sites of Russian online retailer Wildberries

https://www.bbc.co.uk/news/articles/c36de9n4pxpo
1•mmarian•25m ago•0 comments

Show HN: Bribes.fyi – Updated the website for support to keep it alive

https://bribes.fyi/support
1•neverenderr•25m ago•1 comments

OpenAI says its AI went rogue and launched 'unprecedented' cyber-attack

https://www.bbc.com/news/articles/c3ek3gvdnj3o
4•vinni2•25m ago•1 comments

Ultra-processed food firms are using the courts to obstruct health rules

https://www.theguardian.com/society/2026/jul/22/processed-food-firms-courts-obstruct-health-regul...
5•hebelehubele•26m ago•1 comments

Your CLI's next user is not a human

https://akeemjenkins.com/blog/agent-first-clis/
2•cyberflux•27m ago•0 comments

8B Protagonists

https://signoregalilei.com/2026/07/19/8-billion-protagonists/
1•surprisetalk•28m ago•0 comments

Jensen Huang defends Chinese AI amid Kimi panic

https://www.axios.com/2026/07/22/nvidia-jensen-huang-china-open-source-ai
3•giuliomagnifico•29m ago•0 comments

UK businesses are not deepening their use of AI, suggests ONS data

https://www.ft.com/content/1ab00e18-995a-4cda-b76b-00ba6c043863
3•1vuio0pswjnm7•29m ago•0 comments

Show HN: Recall – an MCP server that turns your notes into flashcards

https://recallapp.online/
2•tushar-nath•30m ago•0 comments

How AI may drive union-resistant tech workers to the bargaining table

https://www.theguardian.com/technology/2026/jul/21/ai-tech-workers-unionize
1•mashally•30m ago•0 comments