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: Impetus – I turned my MPE keyboard into a DAW control surface

https://impetus.software/
1•gregsmith4000•2m ago•0 comments

Andreessen Horowitz lays off "majority" of portfolio recruiting team

https://www.axios.com/2026/10/14/andreessen-horowitz-lays-off-exec-talent-team
2•ilamont•3m ago•0 comments

Day Trading app build polished dark sleek for cheap FULL OWNERSHIP

https://abelhelton.gumroad.com/l/vantex
1•asuiadsda•5m ago•0 comments

What is potash, and why is the US importing it from Belarus?

https://www.aljazeera.com/news/2026/10/14/what-is-potash-and-why-is-the-us-importing-it-from-belarus
1•mikhael•5m ago•0 comments

China Starts Clinical Trial for New 128-Channel Implantable BCI

https://chinaminutes.com/2026/05/19/china-128-channel-brain-computer-interface-trial/
2•yogthos•6m ago•0 comments

Delve Town: Blue Sky for Agents

https://delve.town/
1•mooreds•6m ago•0 comments

Proof of the Casas-Alvero Conjecture

https://arxiv.org/abs/2501.09272
1•austinallegro•7m ago•0 comments

Epic is rebuilding its anti-cheat software Fortnite will be playable on Linux

https://www.theverge.com/games/1010808/epic-fortnite-linux-anti-cheat
1•haunter•8m ago•1 comments

Show HN: PTD – one-click timer plus agent token costs, per task

https://github.com/danimoya/ptd
1•danimoya•8m ago•0 comments

OpenAI accuses employee who left for Apple of leaking plans for unreleased devic

https://www.theguardian.com/technology/2026/oct/14/openai-apple-employee-leak-lawsuit
2•r_omain•8m ago•0 comments

Argentina needs less shouting and more growth

https://www.economist.com/leaders/2026/09/10/argentina-needs-less-shouting-and-more-growth
1•simonebrunozzi•8m ago•0 comments

New Online Chess Cheat

https://github.com/Afluenza/Rockfish
2•Afluenza•9m ago•1 comments

Eight states accuse OpenAI of coaching children to harm themselves in lawsuit

https://www.theguardian.com/technology/2026/oct/14/openai-child-self-harm-lawsuit
2•mikelgan•11m ago•0 comments

Cisco patches new Secure Email Gateway zero-day exploited in attacks

https://www.bleepingcomputer.com/news/security/cisco-patches-actively-exploited-secure-email-gate...
1•wondersky•12m ago•0 comments

Inside the Secretive AWS Networking Lab

https://www.servethehome.com/inside-the-secretive-aws-networking-lab/
1•wondersky•12m ago•0 comments

Veda – An AI-Native Operating System Built from the Ground Up

https://github.com/vahmoh25/Veda/commit/4ff28a2a4530799f72117057c428a4eed3392bb4
1•saeedmh10•13m ago•0 comments

Mathematics just had a small hiccup. Long live mathematics

https://substack.com/@ddrichel/note/c-360955138
2•drichel•14m ago•0 comments

Sally Rooney can no longer sell books in UK due to Palestine Action support

https://www.theguardian.com/uk-news/2026/oct/14/sally-rooney-says-she-can-no-longer-sell-books-in...
2•gmargari•15m ago•0 comments

California Engineer Convicted of Poisoning CoWorker Seeks to Erase Felony Record

https://boomaround.com/2026/10/13/california-engineer-david-xu-poisoning-conviction-expungement/
3•randycupertino•15m ago•0 comments

Benchmarking How LLMs Deal with Fraudulent Papers

https://www.science.org/content/blog-post/how-llms-deal-fraudulent-papers
1•AnodicElegy•16m ago•0 comments

OpenCode 2.0

https://anoma.ly/notes/opencode-2-0/
3•gmays•18m ago•0 comments

Elon Musk's foundation is opaque, miserly and self-serving

https://www.economist.com/business/2026/10/13/elon-musks-foundation-is-opaque-miserly-and-self-se...
12•andsoitis•20m ago•0 comments

Leap seconds face judgment day as time lords prepare to vote

https://www.theregister.com/offbeat/2026/10/14/leap-seconds-face-judgment-day-as-time-lords-prepa...
5•Bender•22m ago•0 comments

Lix 2.96 "Bingsu"

https://lix.systems/blog/2026-10-13-lix-2.96-release/
1•birdculture•23m ago•0 comments

Georgia man sues Flock, sheriff's office over alleged ALPR-fueled retaliation

https://arstechnica.com/tech-policy/2026/10/georgia-man-sues-flock-sheriffs-office-over-alleged-a...
1•Bender•23m ago•0 comments

Ukraine Starlink Access Restricted as Musk Says Zelensky 'Has Gone Too Far'

https://www.newsweek.com/ukraine-starlink-access-restricted-as-musk-says-zelensky-has-gone-too-fa...
4•cisc•23m ago•1 comments

OpenAI bugging suspect booked one-way ticket to Saudi Arabia

https://www.cnbc.com/2026/10/14/openai-alfozan-recording-raed-ventures.html
5•Betelbuddy•24m ago•0 comments

Public Risk Monitor

https://do360now.com/
2•HelloAi•24m ago•0 comments

Schools across US protest FCC plan that could disconnect kids from Internet

https://arstechnica.com/tech-policy/2026/10/schools-libraries-plead-with-fcc-to-scrap-idea-of-kil...
3•Bender•24m ago•0 comments

Vintage Cassettes: 1963-2010

http://vintagecassettes.com/
1•austinallegro•25m ago•0 comments