Skip to content

Commit

Permalink
Remove the | 1 left over from the previous float number operation.
Browse files Browse the repository at this point in the history
  • Loading branch information
evanvosberg committed Feb 11, 2020
1 parent 8623234 commit 0241952
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ var CryptoJS = CryptoJS || (function (Math, undefined) {
// Support experimental crypto module in IE 11
var crypto = window.crypto || window.msCrypto;

return (crypto.getRandomValues(new Uint32Array(1))[0]) | 1;
return crypto.getRandomValues(new Uint32Array(1))[0];
} catch (err) {}

throw new Error('Native crypto module could not be used to get secure random number.');
Expand Down

0 comments on commit 0241952

Please sign in to comment.