Revert "EAL4:weak random number generator 补充修复"

This reverts commit 7048c2bc87
This commit is contained in:
王文睿
2021-01-05 11:52:19 +08:00
parent f6782c056a
commit c9f19e472c
10 changed files with 12 additions and 12 deletions

View File

@@ -1077,7 +1077,7 @@
let dpsArr = [];
let timeStamp = Math.floor(new Date().getTime() / 1000);
for (let i = 0; i < 20; i++) {
tempArr.push([timeStamp - (20 - i) * 15, Math.floor(window.crypto.getRandomValues() * 10) + ""]);
tempArr.push([timeStamp - (20 - i) * 15, Math.floor(Math.random() * 10) + ""]);
queryItem.values.push(tempArr[i])
dpsArr.push([i + "", tempArr[i]]);
}