That said any good security audit would have turned this up well before the age of LLMs, we were checking for weak RNG values first thing when looking at a new codebase as it was often an easy finding along with e.g. weak hashing algorithms like MD5 or SHA1. I believe a lot of static analysis code scanning tools have rules that flag Math.random() as insecure as well.
You can try and train it out afterwards but there’ll always be a part of the model that wants to write everything with Math.random because so many people did in the past
I used to do that once every 3 years with a "regular" SSL provider. Unfortunately, now the longest period is 200 days. I'll have to set up Let's Encrypt automation for it eventually :(
It pops up in all kinds of places, like CI/CD runs or automated tests.