Работа над ServerStorage

This commit is contained in:
Book Pauk
2019-03-12 23:34:41 +07:00
parent 886af11d3a
commit e473dc8843
4 changed files with 73 additions and 15 deletions

View File

@@ -23,7 +23,7 @@ export function hexToString(str) {
export function randomArray(len) {
const a = new Uint8Array(len);
crypto.getRandomValues(a);
window.crypto.getRandomValues(a);
return a;
}