EAL4:weak random number generator 补充修复

This commit is contained in:
wangwenrui
2020-12-23 16:41:04 +08:00
parent d0b966013b
commit 7048c2bc87
10 changed files with 12 additions and 12 deletions

View File

@@ -1081,7 +1081,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(Math.random() * 10) + ""]);
tempArr.push([timeStamp - (20 - i) * 15, Math.floor(window.crypto.getRandomValues() * 10) + ""]);
queryItem.values.push(tempArr[i])
dpsArr.push([i + "", tempArr[i]]);
}