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?

Superbad.com if it came from the mind of an AI

https://stuff.do/
1•rogerdickey•1m ago•1 comments

JsxCore – A TSX/JSX View Engine for Asp.net Core

https://github.com/davidwhitney/JsxCore
1•vyrotek•10m ago•0 comments

Token use for exact prompt across models

https://twitter.com/jpschroeder/status/2081751862768717956
1•kappi•12m ago•0 comments

Telegram says app restored on Apple's App Store

https://www.reuters.com/business/retail-consumer/telegram-says-app-restored-apples-app-store-2026...
7•mfiguiere•20m ago•0 comments

A modern Saga/TCC orchestration engine for microservices

https://github.com/scalar-labs/scalardb-saga
2•feeblefakie•21m ago•0 comments

Show HN: Velokey – One Task API for Kling, Veo, Seedance, and Sora

https://velokey.ai
1•PaiDxng•25m ago•0 comments

Socket.dev warns about Rust Tokio library obfuscation

https://socket.dev/cargo/package/tokio
2•cwaffles•25m ago•0 comments

Eval-driven development: Lessons from evaluating GenAI at scale

https://medium.com/airbnb-engineering/eval-driven-development-lessons-from-evaluating-genai-at-sc...
2•simonpure•26m ago•0 comments

Billion-dollar property collapse highlights private credit danger

https://www.abc.net.au/news/2026-08-04/property-collapse-highlights-private-credit-danger-jon-adg...
2•kripy•26m ago•0 comments

Hollow-LLM Attack: Ghost Weights That Fool Zero-Knowledge LLM Verification

https://arxiv.org/abs/2607.28884
1•sbulaev•28m ago•0 comments

George Orwell's 1984 (Hinge Dating App)

https://www.spectator.com.au/2026/07/the-dark-truth-about-dating-apps-and-ai/
1•circumcised•34m ago•0 comments

QRiosity Killed the Cat

https://qriositykilledthecat.com
1•OccamsMirror•36m ago•0 comments

Palantir Shares Jump on 'Otherworldly' Sales, Improved Forecast

https://www.wsj.com/business/earnings/palantir-lifts-guidance-as-revenue-nearly-doubles-f4d79fa7
2•andsoitis•38m ago•2 comments

Full-Stack AI Engineer, Clinical Systems – NYC Based – Healthtech

https://alnuhealth.com/careers/full-stack-ai-engineer-clinical-systems
1•ben-scire•41m ago•2 comments

Telegram Removed from AppStore?

https://www.reddit.com/r/ios/s/RYlp8LKNdD
4•outcoldman•42m ago•1 comments

Nvidia NemotronLabs VoiceChat 11B – real-time full duplex with tool calling

https://huggingface.co/nvidia/NVIDIA-NemotronLabs-VoiceChat-11B
1•karimf•45m ago•0 comments

Birth order and disease risk across the human phenome

https://www.nature.com/articles/s44360-026-00177-z
3•Jimmc414•45m ago•1 comments

Telegram Removed from App Store

https://apps.apple.com/us/app/telegram-messenger/id686449807
11•ExpertAdvisor01•47m ago•2 comments

The Skylar Semigroup Framework for Prime Numbers

https://zenodo.org/records/21781236
1•larklaflamme•48m ago•0 comments

Winamp Announces Strategic Partnership with Deezer

https://winamp.com/press/winamp-announces-strategic-partnership-with-deezer-to-power-the-next-gen...
2•soheilpro•52m ago•0 comments

What I Learned Growing an Engineering Blog from 0 to 463,000 Pageviews

https://sahansera.dev/what-i-learned-growing-engineering-blog-463000-pageviews/
2•sahan•54m ago•0 comments

BYOC Is Not Just 'Deploy into Their Cloud'

https://omnistrate.com/blog/byoc-anywhere-the-spectrum-of-bring-your-own-cloud-deployments
7•kkgupta•58m ago•0 comments

AI Is Breaking the SaaS Deployment Model: 10 Commandments for BYOC

https://byocanywhere.org/
6•kkgupta•58m ago•0 comments

The day my sneaky link made me gag (and not in the fun way)

https://by40.substack.com/p/the-day-my-sneaky-link-made-me-gag
2•ninetailed_aux•58m ago•0 comments

How human hearing is shaping high-end audio

https://physicstoday.aip.org/quick-study/how-human-hearing-is-shaping-high-end-audio
3•7402•1h ago•0 comments

Snakes aren't simple tubes. Their bodies have 5 regions, including a short neck

https://theconversation.com/snakes-arent-simple-tubes-their-bodies-have-five-regions-including-a-...
3•defrost•1h ago•0 comments

The Myth, the Mythos, and the Man

https://om.co/2026/06/07/the-myth-the-mythos-and-the-man/
2•sanj•1h ago•0 comments

Show HN: Every plaintext HTTP request on your Linux box captured via eBPF

https://github.com/yeet-src/httpwatch
1•r3tr0•1h ago•0 comments

Cruising for Shells in Flowise – 6 RCEs That Rode Flowise Low and Slow

https://www.elttam.com/blog/cruising-for-shells-in-flowise
1•pentestercrab•1h ago•0 comments

Show CVBoosta:Resume Optimizer that tailors your resume to every job

1•cvboosta•1h ago•0 comments