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

Flow type checker being ported to rust

https://github.com/facebook/flow/blob/main/rust_port/rust_port_status.md
1•cod1r•47s ago•0 comments

Show HN: Markdown Editor and Reader for Mac

https://www.kitemarkdown.com/
1•antonynjoro•1m ago•0 comments

Porting Zircon (Fuchsia OS's kernel) C++ code to Rust

https://cs.opensource.google/fuchsia/fuchsia/+/main:zircon/skills/cpp-to-rust-coder/SKILL.md
1•s314•2m ago•0 comments

Declank – Remove AI Watermarks from Images

https://declank.skeptrune.com/
1•skeptrune•4m ago•0 comments

Introducing GAPs: GraphQL Auxiliary Proposals

https://graphql.org/blog/2026-06-01-announcing-gaps/
1•markl42•10m ago•0 comments

Show HN: Z2H market awareness OS for traders

https://zero2h.com/preview/hn-preview/
1•pkpie1234•14m ago•0 comments

A Declaration of the Independence of Cyberspace (1996)

https://www.eff.org/cyberspace-independence
1•ipnon•15m ago•0 comments

Substack CEO dismisses popular open letter about platform drift as 'AI slop'

https://substack.com/@cb/note/c-271417569
1•navs•17m ago•0 comments

Show HN: Wifiland – I turned nearby Wi-Fi network names into a live fantasy map

https://wifiland.meaningofdesign.com/
1•meaningofdesign•19m ago•0 comments

Lessons from late founding a tech debt ridden startup(2025)

https://inverted-tree.com/posts/lessons-from-founding-tech-debt-ridden-startup/
1•ioxnav•22m ago•0 comments

How to tame AI's voracious appetite for energy

https://knowablemagazine.org/content/article/technology/2026/lowering-energy-use-artificial-intel...
1•anujbans•31m ago•0 comments

Valve P2P networking broken for more than 2 months

https://github.com/ValveSoftware/GameNetworkingSockets/issues/398
27•babuskov•39m ago•4 comments

Please read my cease and desist and lawsuit case against the FBI

4•susdeepstatefbi•44m ago•2 comments

Made globe hologram experience – includes emergency prediction system

https://global-predict--jordantownsend2.replit.app/hologram
2•Subtextofficial•49m ago•0 comments

Most people across 36 countries have negative views of Israel

https://www.pewresearch.org/short-reads/2026/06/04/most-people-across-36-countries-have-negative-...
4•goldfishgold•53m ago•0 comments

Are Memories Transferable – Or Edible?

https://www.quantamagazine.org/are-memories-transferable-or-edible-20260605/
2•anujbans•54m ago•0 comments

Show HN: Get v2.0

https://github.com/Water-Run/get/releases/tag/v2.0
3•linzhangrun•55m ago•0 comments

The Russian who invented semiconductors 25 years before the USA

https://www.semidoped.com/p/til-the-man-who-invented-the-future
14•johncole•1h ago•3 comments

2ez.sol Its 1999 again Free games. 2ez

https://2ez.sol.site
1•sgspace•1h ago•1 comments

Grid: E2EE Alternative to Life360

https://mygrid.app
1•thebiblelover7•1h ago•1 comments

Field of clones: How horse replicas came to dominate polo

https://knowablemagazine.org/content/article/technology/2026/cloned-polo-horses
27•gscott•1h ago•7 comments

Lego launches 12,060-piece Sagrada Família – its biggest ever set

https://www.cnn.com/2026/06/05/style/lego-sagrada-familia-gaudi-scli-intl
3•giuliomagnifico•1h ago•1 comments

Show HN: LLM for Dummies

https://ronreiter.github.io/llm-for-dummies/
1•ronreiter•1h ago•0 comments

Show HN: TakoVM – Isolated model and tool execution used by enterprises

https://github.com/las7/TakoVM
9•sakuraiben•1h ago•0 comments

The gamers taking on the industry to stop it switching off games

https://www.bbc.com/news/articles/c8e8e7g0r82o
1•breve•1h ago•0 comments

Ukrainian drones target St Petersburg in attack Russia calls 'unprecedented'

https://www.bbc.com/news/articles/cg7498kz808o
4•MilnerRoute•1h ago•1 comments

Show HN: Ext-Infer – Native LLM Inference and Embeddings for PHP

https://infer.displace.tech
1•eamann•1h ago•0 comments

Agent in 50 Lines

https://minimal-agent.com/
3•andai•1h ago•1 comments

The oldest surviving animated feature film at 100

https://www.bbc.com/culture/article/20260603-how-a-26-year-old-german-woman-made-the-worlds-oldes...
2•1659447091•1h ago•1 comments

New Biochemistry-Based Metabolic Protocol Seeking Alpha Concierge Members

2•joshwprinceton•1h ago•0 comments