mirror of
https://iceshrimp.dev/Crimekillz/jointrashposs.git
synced 2024-11-22 08:53:49 +01:00
fix
This commit is contained in:
parent
3ce66b7f5d
commit
1dd2fd95bd
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user