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?

Employment increased by 178,000 in March; unemployment flat at 4.3%

https://www.bls.gov/news.release/empsit.htm
1•JumpCrisscross•1m ago•0 comments

How Japan's JT-60SA is testing real-time TSN for future fusion reactors

https://theopenreader.org/Article:How_Japan%E2%80%99s_JT-60SA_is_testing_real-time_TSN_for_future...
1•TORcicada•1m ago•0 comments

You Can Try Build Billing In-House but You Probably Can't Afford to Own It

https://flexprice.io/blog/cost-of-building-billing-system-in-house
1•Aany1420•2m ago•0 comments

The Mystery of Rennes-Le-Château, Part 3: A Secret History

https://www.filfre.net/2026/04/the-mystery-of-rennes-le-chateau-part-3-a-secret-history/
1•doppp•3m ago•0 comments

Show HN: Notion Calendar Wrapper Linux (tray, libnotify notifications)

https://github.com/opsMachine/notion-calendar-linux
1•MitchSchwartz•3m ago•0 comments

This Month in Ladybird: March 2026

https://buttondown.com/ladybird/archive/this-month-in-ladybird-march-2026/
1•bpierre•3m ago•0 comments

Agent Labs: Workload-Harness Fit

https://www.akashbajwa.co/p/agent-labs-workload-harness-fit
1•gmays•3m ago•0 comments

New Advances Bring the Era of Quantum Computers Closer

https://www.quantamagazine.org/new-advances-bring-the-era-of-quantum-computers-closer-than-ever-2...
2•MindGods•4m ago•0 comments

Channel Surfer Weather Channel

https://channelsurfer.tv/?ch=50
2•kilroy123•6m ago•0 comments

Software Engineering Feels Weird Now

https://telegra.ph/Software-Engineering-Feels-Weird-Now-04-03
2•throwaway2398jk•7m ago•0 comments

Show HN: Speck PBR – A WebGPU molecular visualizer

https://github.com/wwwtyro/speck-pbr
1•wwwtyro•8m ago•0 comments

The Wayward Webring: a collection of link collections

https://waywardweb.org/
2•gavmor•9m ago•0 comments

Ask HN: What do you dislike most about Linux and Windows?

1•roschdal•10m ago•0 comments

An Actionable Model of Trust

https://paragraph.com/@hq.spengrah/an-actionable-model-of-trust
1•NickNaraghi•10m ago•0 comments

Anthropic's next model could be a 'watershed moment' for cybersecurity

https://www.cnn.com/2026/04/03/tech/anthropic-mythos-ai-cybersecurity
3•agiacalone•11m ago•0 comments

Status icons and symbols on Apple Watch

https://support.apple.com/en-us/108038
1•bookofjoe•11m ago•0 comments

CISA Adds One Known Exploited Vulnerability to Catalog

https://www.cisa.gov/news-events/alerts/2026/04/02/cisa-adds-one-known-exploited-vulnerability-ca...
1•anonhaven•11m ago•0 comments

Show HN: Aurion OS, A 1.8MB OS with a browser, try it live (C/x86 ASM)

https://aurionos.vercel.app/
1•Luka12-dev•15m ago•1 comments

Show HN: Mold – local AI image generation CLI (FLUX, SDXL, SD1.5, 8 families)

https://github.com/utensils/mold
3•doomspork•16m ago•0 comments

US F-15E jet confirmed shot down over Iran as Tehran releases wreckage images

https://www.theguardian.com/world/2026/apr/03/us-fighter-jet-confirmed-shot-down-over-iran
5•tjwds•16m ago•0 comments

Security Risk of AI code editors

https://old.reddit.com/r/cybersecurity/comments/1hx980d/security_risk_of_ai_code_editors/
1•downboots•16m ago•0 comments

Rainy-city.com: A side project I have been thinking about for a long time

https://www.lowimpactfruit.com/p/rainy-citycom-a-side-project-i-have
1•mnky9800n•16m ago•0 comments

Ask HN: Advice on Solo Launching

2•acaciabengo•20m ago•0 comments

I found an IDOR exposing 250k patient records in a telehealth startup

https://medium.com/@calebbacher/i-found-a-hipaa-violation-in-a-400m-startup-they-paid-me-1-000-an...
2•csteinbacher•20m ago•0 comments

MicroSafe-RL v1.0 – Sub-microsecond safety for Edge AI

https://github.com/Kretski/MicroSafe-RL
1•DREDREG•21m ago•0 comments

Ask HN: What music are you currently working to?

1•SunshineTheCat•22m ago•1 comments

ARCHE3-7B – Sparse Moe with SmartRouter and Foundation Curriculum Training

1•OpenSynapseLabs•23m ago•0 comments

Packaging 128 Languages with Nix

https://invariant.club/articles/packaging-128-programming-languages-with-nix.html
1•birdculture•23m ago•0 comments

Lossless context management: how kern compresses 20k messages into a context

https://kern-ai.com/blog/lossless-context-management
1•obilgic•23m ago•0 comments

Competing for the JOB with a Triplestore

https://yyhh.org/blog/2024/09/competing-for-the-job-with-a-triplestore/
1•smartmic•24m ago•0 comments