I&#x27;m the average Javascript programmer. I&#x27;m writing some web app and I need to do some cryptography. Let&#x27;s see, there&#x27;s Math.random and Crypto.getRandomValues. Let&#x27;s go with Math.random, for shiggles. I&#x27;m probably copy-pasting from Stack Overflow.<p>Will renaming a function or two fix my bad behaviour?<p>The answer to &quot;Should I use Math.random or X&quot; is neither! I should be using a cryptography library like SJCL or tweetnacl-js:<p><a href="http:&#x2F;&#x2F;bitwiseshiftleft.github.io&#x2F;sjcl&#x2F;" rel="nofollow">http:&#x2F;&#x2F;bitwiseshiftleft.github.io&#x2F;sjcl&#x2F;</a><p><a href="http:&#x2F;&#x2F;dchest.github.io&#x2F;tweetnacl-js&#x2F;" rel="nofollow">http:&#x2F;&#x2F;dchest.github.io&#x2F;tweetnacl-js&#x2F;</a>