• bleistift2@sopuli.xyz
    link
    fedilink
    English
    arrow-up
    1
    ·
    12 days ago

    One way in which this could have come about is that Math.random wasn’t supported in all relevant browsers when the library author wrote the library. So they had to roll their own randomness with blackjack and hookers. Later the web standards evolved and the author was able to remove the custom code, but now had people relying on his library’s exposing a getRandom function.