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?

Meta's Muse appears to use an OpenAI model labeled muse-special

https://mouse.dev/blog/muse-special/
1•Aeroi•1m ago•1 comments

Photon: Building a Retrieval and Ranking Engine from Scratch

https://www.perplexity.ai/hub/blog/photon
1•acossta•4m ago•0 comments

Free Bitcoin DCA Calculator

https://mtg-arbitrage-desk.loca.lt/dca-calculator
1•devtoolseller•7m ago•0 comments

Yes, Claude can do Nine Loops

https://www.anthropic.com/research/yes-claude-can-do-nine-loops
3•tzury•7m ago•0 comments

He who does not code, neither shall he eat

https://celphase.com/3mwe774jgrk2p
2•xena•8m ago•0 comments

How Do You Make a Incremental Compiler? (with Julien Verlaguet) [video]

https://www.youtube.com/watch?v=J31LlAUtoos
1•matt_d•8m ago•0 comments

Offensive-forensic-distros-installer-MacBook-air-M1-M2-external-disk-luks Public

https://github.com/securizart/offensive-forensic-distros-installer-macbook-air-M1-M2-external-dis...
1•ignardpent•8m ago•1 comments

How Trump Is Building a National Citizenship Database to Check Voters

https://www.nytimes.com/2026/09/25/us/politics/what-to-know-citizenship-database.html
1•vinni2•11m ago•0 comments

Sham scientific societies are misleading star researchers

https://www.nature.com/articles/d41586-026-02980-w
2•sbulaev•12m ago•0 comments

Compiling Hono with Perry

https://geastack.com/blog-hono-with-perry
1•arbayi•13m ago•0 comments

Ask HN: What vendor you'd switch out if a better option was available?

1•jviotti•13m ago•0 comments

Show HN: Stop shipping AI slop, Executor makes agents prove it works

https://github.com/Atri10/executor
1•LambdaLogic•14m ago•0 comments

Towards GPU Type Inference

https://winwang.blog/posts/dphm-1
2•winwang•16m ago•0 comments

Tesla moves to electrify trucking after a decade of work and delays

https://techcrunch.com/2026/09/25/tesla-finally-moves-to-electrify-trucking-after-a-decade-of-wor...
2•m463•16m ago•0 comments

Separating Protocol from Application Logic

https://builder.aws.com
1•mlhpdx•16m ago•0 comments

Tesla Semi enters volume production

https://electrek.co/2026/09/25/tesla-semi-volume-production-launch-nevada-factory/
3•m463•17m ago•0 comments

Why I like JavaScript as a compilation target

https://gilmi.me/blog/post/2023/07/08/js-as-a-target
2•thunderbong•18m ago•0 comments

AI agent hacks government website for first time: why this breach matters

https://www.nature.com/articles/d41586-026-03024-z
2•digital55•22m ago•0 comments

CliDoc – JSDoc/TSDoc but for command line tools

https://clidoc.dev/
1•bhouston•24m ago•0 comments

Beacon: A prime-gap world record (merit 42.5192) on four RTX 5090 GPUs

https://zenodo.org/records/22963326
1•mvojvoda•26m ago•0 comments

Jev for Input Validation

https://unstack.io/jev-for-input-validation
2•ScottWRobinson•26m ago•0 comments

FiOTP an offline TOTP and HOTP authenticator for macOS

https://github.com/mehmetfiskindal/fiotp-multiplatform
1•arbayi•27m ago•0 comments

Private equity-backed Florida railway company Brightline files for bankruptcy

https://www.ft.com/content/ad2f9563-7853-4a6a-b46c-fe6afeccbbc0
1•throwaway2037•28m ago•2 comments

Interactive Map of Songs Mentioning Places in Their Titles

https://www.chrisdallariva.com/songs-about-places
1•noisymortimer•30m ago•0 comments

Peter Thiel slams pope's AI encyclical as gift to Chinese Communist Party

https://www.politico.com/news/2026/09/24/peter-thiel-slams-popes-ai-encyclical-as-gift-to-chinese...
5•1vuio0pswjnm7•30m ago•3 comments

US weekly jobless claims decrease as labor market regains footing

https://www.reuters.com/world/us/us-weekly-jobless-claims-decrease-labor-market-regains-footing-2...
1•frank_clover•32m ago•1 comments

VeriLoop E2 Release: 27B Post-Trained Model and Full GGUF BF16 to IQ1_M

https://discuss.huggingface.co/t/veriloop-e2-release-27b-post-trained-model-and-full-gguf-precisi...
1•simonpure•34m ago•0 comments

Is this true? "50% of recent YC startups don't have an AWS account"

https://twitter.com/ivanburazin/status/2066629066069831850
1•DataDisciple•36m ago•1 comments

Oxide – a native terminal for macOS and Linux, built on GPUI

https://github.com/oxide-terminal/oxide
1•bobbycoleman-de•37m ago•0 comments

Flip fluid simulation on flip dots

https://mitxela.com/projects/flipflip
1•fanf2•37m ago•0 comments