random: optimize fallback.

This commit is contained in:
Christopher Jeffrey 2016-09-06 18:21:14 -07:00
parent 22236aab9c
commit b0d7fc14b1
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -48,7 +48,7 @@ if (crypto) {
var i;
for (i = 0; i < data.length; i++)
data[i] = ((Math.random() * 0x100000000) >>> 0) % 256;
data[i] = Math.floor(Math.random() * 256);
return data;
};