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?

Towards a virtual embryo that can predict what happens when genes change

https://arxiv.org/abs/2610.40447
1•Betelbuddy•2m ago•0 comments

Show HN: Cursed Cam, a haunted CCTV monitor made from photos of your place

https://cursedcam.com/demo
1•jamesfrewin•4m ago•0 comments

Collaborative AI agents for autonomous experimental research

https://arxiv.org/abs/2610.40589
1•Betelbuddy•5m ago•0 comments

Fluorite: a Rust framework for distributed enclave applications on Kubernetes

https://ivanvalentini.github.io/posts/fluorite/
1•sarusso•5m ago•0 comments

French lawmakers approved a tax of €0.055 for every gigabyte of internet traffic

https://www.assemblee-nationale.fr/dyn/17/comptes-rendus/seance/session-ordinaire-de-2026-2027/pr...
4•helloplanets•10m ago•2 comments

What Is Work For? Labor, Politics, and Meaning in the Age of AI

https://arxiv.org/abs/2610.39375
1•Betelbuddy•10m ago•0 comments

Halloween is a crass American import – I'll never indulge it

https://inews.co.uk/inews-lifestyle/halloween-crass-american-import-never-indulge-4862206
1•penguin_booze•11m ago•0 comments

Ceph v21.2.0 Umbrella Released

https://ceph.io/en/news/blog/2026/v21-2-0-umbrella-released/
1•taha_jahangir•12m ago•0 comments

Europoortimes.com

https://europoortimes.com/#/
2•schlaepf•15m ago•0 comments

Scientists think our recent ancestors may have run hotter

https://www.bbc.com/future/article/20261030-why-humans-maybe-ran-hotter-two-centuries-ago
1•tigerlily•16m ago•0 comments

Hottown.music

https://hottown.music
1•Martinsos•19m ago•0 comments

Show HN: Share file without digital trace

https://apps.zincirx.com/magicalshare/web/
1•zincirx•20m ago•0 comments

Petition for Proton's CEO Andy Yen to step down reaches 1500 votes

https://protonmail.uservoice.com/forums/945460-general-ideas/suggestions/51867423-andy-yen-steps-...
1•alexfortin•23m ago•1 comments

When the network is down, messages go from hand to hand

https://pyrsos.app/en/index.html
3•anonpenguin•23m ago•0 comments

Some thoughts on security after ten years of qmail 1.0 (2007) [pdf]

https://cr.yp.to/qmail/qmailsec-20071101.pdf
1•ForHackernews•24m ago•0 comments

How to Stop Losing 17,500 Kidneys

https://www.statecraft.pub/p/how-to-stop-losing-17500-kidneys
2•NewCzech•32m ago•0 comments

Show HN: SimReady Central – browse, interact, and download 3D simulation assets

https://huggingface.co/spaces/nvidia/simready-central
2•technotize•33m ago•0 comments

Entire Insurance industry could be overwhelmed by catastrophic AI event

https://www.intelligentinsurer.com/entire-insurance-industry-could-be-overwhelmed-by-catastrophic...
4•Bluestein•36m ago•0 comments

Shiny Object Syndrome

https://en.wikipedia.org/wiki/Shiny_object_syndrome
7•janisz•37m ago•0 comments

The United Kingdom is committing an act of strategic self harm [Article]

https://blog.rodmena.com/entry/event_horizon_machine_standards
3•rodmena•37m ago•0 comments

Show HN: Filepeek – View any file in your browser

https://filepeek.io/
2•gigaparsec•39m ago•0 comments

How to tell whether your lithium batteries are a fire risk – and what to do

https://www.cbc.ca/lite/story/9.7401515
2•colinprince•48m ago•1 comments

'Big Short' Trader Steve Eisman on Anthropic IPO

https://www.youtube.com/watch?v=AMoKKtNFkDs
8•musha68k•50m ago•2 comments

Show HN: Free OCR Cost Calculator – Estimate multi-provider LLM token costs

https://ocrbench.app/blog/llm-ocr-cost-calculator/
3•gustutu•1h ago•0 comments

GDPR: France imposes 27x more in fines per resident than Spain

https://www.legiscope.com/blog/europe-data-protection-fines-per-capita.html
5•Thiebaut•1h ago•2 comments

New NanoGPT speedrun record with ANVIL II

https://hyperstition.cc/training-nanogpt-in-39-9-seconds
2•yclicc•1h ago•0 comments

PicasaPy: Complete rewrite of the Picasa photo editor based on Python

https://github.com/sanchomuzax/PicasaPy
2•edward•1h ago•1 comments

We Took over ChatGPT Accounts

https://www.parameter.ai/labs/we-found-a-gap-at-openai
5•armcat•1h ago•1 comments

Zone Rouge

https://en.wikipedia.org/wiki/Zone_rouge
2•Bluestein•1h ago•0 comments

Where They Stand – Nonpartisan Guide to Every House and Senate Race

https://wheretheystand.vote
2•zaidbourini•1h ago•0 comments