This commit is contained in:
kakkokari-gtyih 2024-01-21 15:38:57 +09:00
parent 3ce66b7f5d
commit 1dd2fd95bd

View File

@ -14,7 +14,7 @@ if (process.client) {
const arr = window.crypto.getRandomValues(new Uint16Array(2));
counter = parseInt(arr[0].toString());
} else {
const crypto = require('crypto');
const crypto = await import('crypto');
counter = crypto.randomBytes(2).readUInt16LE(0);
}