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?

Catswords.Phantomizer: An HTTP-based DLL loader designed for .NET apps

https://github.com/gnh1201/welsonjs/tree/master/WelsonJS.Toolkit/Catswords.Phantomizer
1•gnh1201•2m ago•1 comments

USB Video Capture Devices: Wow They're All Bad

https://hackaday.com/2025/12/07/usb-video-capture-devices-wow-theyre-all-bad/
1•colinprince•5m ago•0 comments

How Do People Catch Baseballs? (2021)

https://www.wired.com/story/how-do-people-actually-catch-baseballs/
1•vismit2000•9m ago•1 comments

Ambient music mixed with the sounds of San Francisco public safety radio

https://somafm.com/player24/station/sf1033
1•indigodaddy•16m ago•0 comments

Bad programmers are about to become exposed

https://sundaylettersfromsam.substack.com/p/bad-programmers-are-about-to-become
1•soham•16m ago•1 comments

Show HN: AWS VPC/Subnet Calculator and Terraform Generator (Itcmds.ai)

https://itcmds.ai/AWS_IP_Calculator
1•munyunting•18m ago•0 comments

Ancient dirty dishes reveal decades of questionable findings

https://news.cornell.edu/stories/2025/12/ancient-dirty-dishes-reveal-decades-questionable-findings
1•geox•26m ago•0 comments

Hong Kong holds Legislative Council election

https://qazinform.com/news/hong-kong-holds-legislative-council-election-7cdc44
1•Bolat14•28m ago•0 comments

Northern California's largest non-Tesla fast charging hub: now online in Oakland

https://electrek.co/2025/12/04/northern-california-largest-non-tesla-fast-charging-hub-is-now-onl...
1•MilnerRoute•28m ago•0 comments

Years after anime imagined it, Japan has realized exosuits

https://twitter.com/CyberRobooo/status/1997656741363036595
2•keepamovin•35m ago•0 comments

Constructivist AI: A New Approach to AI

https://github.com/DanexCodr/Constructivist-AI
1•DanexCodr•36m ago•0 comments

Making Software: Blending modes

https://twitter.com/DanHollick/status/1583080119068807168
1•vismit2000•42m ago•1 comments

Postgres CDC in ClickHouse, A year in review

https://clickhouse.com/blog/postgres-cdc-year-in-review-2025
1•saisrirampur•46m ago•0 comments

Stanford PhD dropout hired Meta's brightest minds to join AI math startup

https://www.businessinsider.com/axiom-math-stanford-dropout-meta-ai-researchers-startup-2025-12
2•teleforce•49m ago•0 comments

Cold Case Inquiries Hampered After Ancestry.com Revisits Terms of Use

https://www.nytimes.com/2025/12/07/nyregion/ancestry-dna-police.html
2•WarOnPrivacy•50m ago•3 comments

Martin Hairer: Do Mathematicians Need Computers? [video]

https://www.youtube.com/watch?v=fbVqc1tPLos
1•vismit2000•51m ago•0 comments

Show HN: Matchmyvc.com – Is this going to be useful?

https://matchmyvc.com
1•tapan_garg•1h ago•0 comments

Color Recreation from First Principles

https://ycao.net/posts/recreating-color-simplified/
1•xiaoyu2006•1h ago•1 comments

The surprising countries pulling off fast clean energy transitions

https://www.cnn.com/2025/11/07/climate/solar-wind-renewables-transition-global-pakistan-hungary-c...
3•toomuchtodo•1h ago•1 comments

Earth needs more energy. Atlanta's Super Soaker creator may have a solution

https://www.ajc.com/business/2025/11/earth-needs-more-energy-atlantas-super-soaker-creator-may-ha...
3•TMWNN•1h ago•0 comments

I made a prompt framework that makes LLMs stop hedging and speak straight

2•DrRockzos•1h ago•1 comments

The Web Runs on Tolerance

https://shkspr.mobi/blog/2025/12/the-web-runs-on-tolerance/
4•benwerd•1h ago•1 comments

Show HN: Peephole

https://peephole.greg.technology/
3•gregsadetsky•1h ago•1 comments

AI Interview Coder Assistant

https://interviewcoder.top
2•ainterviewcoder•1h ago•2 comments

ChatGPT claims to have solved Navier-Stokes problem

https://github.com/vporton/navier-stokes
2•porton•1h ago•2 comments

Noninvasive imaging could replace finger pricks for measuring blood glucose

https://news.mit.edu/2025/noninvasive-imaging-could-replace-finger-pricks-diabetes-1203
17•ivewonyoung•1h ago•2 comments

I'm a Professor. A.I. Has Changed My Classroom, but Not for the Worse

https://www.nytimes.com/2025/11/25/magazine/ai-higher-education-students-teachers.html
1•bookofjoe•1h ago•2 comments

Open Source Doesn't Fail Because of Code

https://blog.ulisesgascon.com/open-source-doesnt-fail-because-of-code
1•gpi•1h ago•0 comments

India reviews always-on A-GPS tracking plan for phones

https://news.kagi.com:443/tech/2025120618/india-reviews-always-on-a-gps-tracking-plan-for-phones?...
2•hereme888•1h ago•2 comments

Use AI without skill atrophy

https://www.augmentedswe.com/p/use-ai-without-skill-atrophy
2•wordsaboutcode•2h ago•1 comments