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?

Show HN: Vitekube – Vitest on real Kubernetes clusters

https://github.com/vitekube/vitekube
1•kodisha•44s ago•0 comments

Desktop icon behavior survey results

https://akselmo.dev/posts/desktop-icon-survey-results/
1•TrianguloY•57s ago•0 comments

Trout: MIRC for the Terminal

https://github.com/MaxRenaud/trout
1•mrmakkusu•2m ago•0 comments

No CVE Today, Please

https://nocveday.com/
2•metalnix•3m ago•0 comments

Archiving a Shuttered Japanese Drift Magazine's Back Catalog Is a Labor of Love

https://www.thedrive.com/news/archiving-a-shuttered-japanese-drift-magazines-entire-back-catalog-...
2•rdmuser•3m ago•0 comments

ECB considers review of bank data center lending on AI risk

https://www.bloomberg.com/news/articles/2026-11-06/ecb-considers-review-of-banks-data-center-lend...
2•TheAlchemist•3m ago•0 comments

MakerGuard – See what strangers can access in your Supabase app

https://midnightbuilds.fyi/makerguard/
1•swatikumari425•6m ago•0 comments

Tessera, an open 27B tuned Qwen coding model that thinks in compressed CJK

https://huggingface.co/ZelligeAI/Tessera-27B-B-CJK-RL
1•Zellige•6m ago•0 comments

Introduction to Compute Markets #1: The Primary Market

https://twitter.com/OrnnExchange/status/2118372699093295482
1•gmays•6m ago•0 comments

Live now: attacking P vs. NP using only AI, written out in real time

https://x.com/i/broadcasts/2OdXnjKkaKWmkV
1•sunbagger•7m ago•0 comments

The hardware bet is wrong. It is running from a war

https://twitter.com/withYougori/status/2118840199400587576
1•Yougori•9m ago•0 comments

Outbound SIP calling is now available to all organizations

https://developers.openai.com/api/docs/guides/voice-sip
1•arbayi•19m ago•0 comments

Running Doom Inside SQL Server

https://sqlartist.github.io/posts/running-doom-inside-sql-server/
1•sqlartist•19m ago•0 comments

Show HN: Handbrake – a free, private driving log, no trackers, no ads

https://apps.apple.com/us/app/handbrake-driving-log/id6822426461
1•hcabral•20m ago•1 comments

Show HN: Budget Friendly City Discovery

https://geesling.ca/
1•bmods•20m ago•1 comments

Evergreen by Carta: Multiplayer coding platform where teams+agents ship together

https://evergreen.carta.com/blog/introducing-evergreen
2•chrisnager•20m ago•0 comments

Turns with an LLM: coherence isn't the same as accuracy

https://zenodo.org/records/23686384
1•pinuslongaeva•20m ago•0 comments

CATL Sodium Battery Hits LFP Cost Parity in 2026: 15,000 Cycles, 30-Year Life

https://ievchina.com/energy-storage/catl-sodium-battery-cost-parity-lfp-2026-15000-cycles/
20•doener•22m ago•5 comments

Swapping LLMs in Under Two Seconds: A Sleep Mode for Llama.cpp

https://zaage.it/writing/llama-sleep/
1•phirdev•23m ago•0 comments

Show HN: I asked HN about AI agentic setups, here are 750 of the comments mapped

2•eggbrain•24m ago•0 comments

Computer-Use Agents Are Embodied Generalists

https://pranjal2041.github.io/cua-embodied/
1•matt_d•27m ago•0 comments

Show HN:Best Price Supermarket Offers in Denmark

https://nyneon.net/supermarket-offers-denmark/
1•Zinnn•28m ago•1 comments

Git for Global Law

https://lexifina.com/blog/git-for-global-law
1•alansaber•28m ago•0 comments

The Port That Does Not Exist

https://acid.vegas/blog/the-port-that-does-not-exist/
2•tomwas54•30m ago•0 comments

ChatGPT silently passes data between connectors and the bounty wants an ID card

https://community.openai.com/t/security-follow-up-tool-call-silently-routed-to-a-different-connec...
20•Aldipower•32m ago•3 comments

Drone warfare in space: Autonomous laser cubesat swarms could defend satellites

https://www.space.com/space-exploration/satellites/drone-warfare-in-space-swarms-of-autonomous-la...
2•gmays•33m ago•0 comments

Inkling 2 Small: 17A-594B trained in 68 hours on 12T tokens, beating Muse Spark

https://latent.space/p/ainews-inkling-2-small-17a-594b-trained-in-68-hours-on-12t-tokens-beating-...
1•adunk•35m ago•1 comments

Open Source Neuron Hunt on AI Research Collaboration Platform

https://app.station-house.net
1•stationhouse•36m ago•1 comments

Self-powered toothbrush makes electricity to kill cavity-causing bacteria

https://www.livescience.com/health/this-self-powered-toothbrush-makes-electricity-to-kill-cavity-...
2•gmays•37m ago•0 comments

The Future Of Instrastructure, As I see It

https://djoker.dev/posts/future-of-infra/
1•dj0k3r•37m ago•0 comments