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

What Is Claude Code's Plan Mode?

https://lucumr.pocoo.org/2025/12/17/what-is-plan-mode/
1•handfuloflight•2m ago•0 comments

Show HN: Nob – Make your terminal AI-powered

https://github.com/hetpatel-11/nob
1•hkpatel•5m ago•0 comments

Go-boot: bare metal Go UEFI boot manager

https://github.com/usbarmory/go-boot
1•nateb2022•6m ago•0 comments

The game behind the gig economy

https://www.techpolicy.press/the-game-behind-the-gig-economy/
1•anigbrowl•7m ago•0 comments

Judge wants $54M for lost pants

https://www.irishtimes.com/news/judge-wants-54m-for-lost-pants-1.808197
1•austinallegro•7m ago•2 comments

Realistic enterprise security dataset with 23-day APT campaign

https://github.com/gregdiy/cyber_simulation
1•PhantomArmor•9m ago•1 comments

Salesforce is tightening control of its data ecosystem

https://www.cio.com/article/4108001/salesforce-is-tightening-control-of-its-data-ecosystem-and-ci...
1•georgewfraser•9m ago•0 comments

Semiquincentennial $1 Coin Candidate Designs

https://www.usmint.gov/news/media-kit/semiq-dollar-coin
2•DustinEchoes•10m ago•0 comments

Coursera to buy Udemy, creating $2.5B firm to target AI training

https://www.reuters.com/business/coursera-udemy-merge-deal-valuing-combined-firm-25-billion-2025-...
1•elsewhen•12m ago•0 comments

SimpleQA Verified: Reliable Factuality Benchmark to Measure Parametric Knowledge

https://arxiv.org/abs/2509.07968
1•handfuloflight•12m ago•0 comments

Sendspin: Music Experience Protocol

https://www.sendspin-audio.com/
1•jackwilsdon•14m ago•0 comments

The Flag Institute

https://en.wikipedia.org/wiki/Flag_Institute
1•grobie12•14m ago•0 comments

Emergence of Human to Robot Transfer in VLAs

https://www.physicalintelligence.company/research/human_to_robot
1•xfr•15m ago•0 comments

Ask HN: Does anyone understand how Hacker News works?

1•jannesblobel•16m ago•2 comments

Ask HN: Should I start a software foundation (goal: help emergency services)?

1•strgcmc•17m ago•0 comments

PRs aren't enough to debug agent-written code

https://blog.a24z.ai/blog/ai-agent-traceability-incident-response
1•birdculture•17m ago•0 comments

Show HN: TimeBoxer – Track estimation accuracy to fix terrible time planning

https://apps.apple.com/us/app/timeboxer-time-estimator/id6720741072
1•rsmihir3•18m ago•0 comments

Show HN: Muxide – Zero-dep pure Rust MP4 muxer (H.264/H.265/AV1, no FFmpeg)

https://github.com/Michael-A-Kuykendall/muxide
1•MKuykendall•22m ago•1 comments

Five Life Lessons from Finland, Once Again the Happiest Country

https://www.forbes.com/sites/davidnikel/2025/03/20/5-life-lessons-from-finland-once-again-the-wor...
2•teleforce•23m ago•0 comments

Senate Passes Defense Bill as Lawmakers Scramble to Fix D.C. Airport Provision

https://www.wsj.com/politics/national-security/senate-defense-bill-vote-ndaa-41d7d5a1
1•JumpCrisscross•28m ago•0 comments

Show HN: MDXport – Browser-Based Markdown to PDF Using Typst and WASM

https://www.mdxport.com/en/
1•ZacharyZZ•29m ago•0 comments

What to do with out of trust property in California?

https://www.williamhalaw.com/post/12/
1•burritofanatic•33m ago•0 comments

An antiviral defense mechanism may lead to Alzheimer's disease

https://medicalxpress.com/news/2025-12-antiviral-defense-mechanism-alzheimer-disease.html
1•bikenaga•34m ago•1 comments

Notepad++ v8.8.9 release: Vulnerability-fix

https://notepad-plus-plus.org/news/v889-released/
2•Archelaos•36m ago•0 comments

The Chinese AI Iceberg [video]

https://www.youtube.com/watch?v=XFhUI1fphKU
2•lawrenceyan•36m ago•0 comments

Show HN: C-compiler to compile TCC for live-bootstrap

https://github.com/FransFaase/MES-replacement
1•fjfaase•40m ago•0 comments

Jq Language Description

https://github.com/jqlang/jq/wiki/jq-Language-Description
2•behnamoh•41m ago•0 comments

You Look Like Shit > How Are You?

https://andys.blog/you-look-like-shit/
2•andytratt•42m ago•2 comments

Oklo's plan to turn leftover weapons-grade plutonium into a nuclear bridge fuel

https://sherwood.news/tech/inside-oklos-audacious-plan-to-turn-leftover-weapons-grade-plutonium-i...
1•donohoe•44m ago•0 comments

Explaining the Widening Divides in US Midlife Mortality: Is There a Smoking Gun?

https://www.nber.org/papers/w34553
4•bikenaga•45m ago•1 comments