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

The Gigawatt Delusion: Why Measuring AI in Power Capacity Is a Category Error

https://aiafterhours.substack.com/p/the-gigawatt-delusion-why-silicon
1•shwetankk•1m ago•0 comments

AgentLint: Real-time guardrails for Claude Code (open source)

https://github.com/mauhpr/agentlint
1•maupr92•2m ago•0 comments

Exploring the Power of the Internet Gopher (1993)

https://archive.org/details/uiucnet69293univ
1•ecliptik•2m ago•0 comments

A long-term memory system that turns agent trajectories into reusable guidelines

https://huggingface.co/blog/ibm-research/altk-evolve
1•allthingsapi•3m ago•1 comments

Tiny Programmer:writes code, takes breaks to hang out on a BBS, and clocks out

https://old.reddit.com/r/raspberry_pi/comments/1se9afo/made_a_tiny_device_that_writes_code_takes_...
2•akman•5m ago•1 comments

Economy AI agents form teams, run missions, earn commissions

https://www.signomy.xyz/
2•Burnmydays•8m ago•1 comments

Auditing my local Python packages

https://alexwlchan.net/2026/python-package-audit/
1•ingve•8m ago•0 comments

Ask HN: Negotiating Intern Pay

2•lemonlime227•11m ago•0 comments

Surelock

https://notes.brooklynzelenka.com/Blog/Surelock
1•EvgeniyZh•11m ago•0 comments

AuRevoir: View/remove notification messages from Apple's Notification Database

https://github.com/objective-see/AuRevoir
2•ingve•12m ago•0 comments

California officials charge 21 people in hospice fraud ring exceeding $250M

https://abc7.com/post/california-officials-charge-21-people-hospice-fraud-ring-exceeding-250-mill...
2•Alupis•12m ago•0 comments

You can have an RSS dependent website in 2026

https://matduggan.com/you-can-absolutely-have-an-rss-dependent-website-in-2026/
1•birdculture•13m ago•0 comments

DOJ Top Antitrust Litigators Exit After Ticketmaster Accord

https://www.bloomberg.com/news/articles/2026-04-08/doj-top-antitrust-litigators-exit-after-ticket...
5•1vuio0pswjnm7•16m ago•0 comments

PutHouse – Automated options trading to earn income with your stocks

https://puthouse.com
1•jansonlau•17m ago•0 comments

Amnesty International Marks '1,000 Hours' Of Iran's Internet Blackout

https://twitter.com/amnesty/status/2042535560816869489
2•us321•20m ago•0 comments

State Court Denies Meta's Section 230 Immunity Claim in Social Media Suit

https://www.law.com/2026/04/10/state-court-denies-metas-section-230-immunity-claim-in-social-medi...
1•1vuio0pswjnm7•20m ago•0 comments

Windows Secure Lock Screen clock may appear up to 30 seconds behind

https://support.microsoft.com/en-us/windows/secure-lock-screen-clock-may-appear-up-to-30-seconds-...
3•shscs911•21m ago•0 comments

Show HN: Whirligig

https://whirligig.live
1•idiocache•22m ago•0 comments

(MSN) Mexico is moving toward universal healthcare by 2027

https://www.msn.com/en-us/health/other/mexico-is-moving-toward-universal-healthcare-by-2027-here-...
2•SilentM68•23m ago•0 comments

Anthropic PBC Risk Assessment Report (Unredacted) [pdf]

https://storage.courtlistener.com/recap/gov.uscourts.cand.465515/gov.uscourts.cand.465515.148.1.pdf
1•KenoFischer•24m ago•0 comments

Small Models Are Smart Enough

https://twitter.com/danveloper/status/2042685676949270724
4•m-hodges•24m ago•0 comments

Decentralized AI from Scratch (Python Tutorial) [video]

https://www.youtube.com/watch?v=zY2dAK-pMPI
2•williamtrask•27m ago•0 comments

Artemis II returns to Earth, splashdown in four hours

https://www.cbc.ca/news/science/artemisii-return-splashdown-9.7157857
5•heresie-dabord•27m ago•0 comments

Show HN: A2A Utils – a comprehensive set of utility functions for A2A servers

https://github.com/a2aproject/A2A/discussions/1738
2•benclarkeio•29m ago•0 comments

Book Review: Klara and the Sun

https://www.stephendiehl.com/posts/klara_and_the_sun/
2•ibobev•30m ago•1 comments

The Iceberg Index: Measuring Skills-Centered Exposure in the AI Economy [pdf]

https://iceberg.mit.edu/report.pdf
2•mpweiher•30m ago•0 comments

Show HN: I built a site that shows every world event you lived through

https://youdidntnotice.com/
3•lip404•30m ago•0 comments

Trump-appointed judges refuse to block Trump blacklisting of Anthropic AI tech

https://arstechnica.com/tech-policy/2026/04/trump-appointed-judges-refuse-to-block-trump-blacklis...
5•SilverElfin•31m ago•0 comments

Estimated effects of food taxes and subsidies on health, economics in Australia

https://www.sciencedirect.com/science/article/pii/S2468266726000435
2•PaulHoule•31m ago•0 comments

Interventions: Trying to train a better model in the cloud

https://www.gilesthomas.com/2026/04/llm-from-scratch-32j-interventions-trying-to-train-a-better-m...
1•ibobev•31m ago•0 comments