From 1dd2fd95bd61ff3fc5a6ccde076b9278070b9457 Mon Sep 17 00:00:00 2001 From: kakkokari-gtyih Date: Sun, 21 Jan 2024 15:38:57 +0900 Subject: [PATCH] fix --- assets/js/mi/aid.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/mi/aid.ts b/assets/js/mi/aid.ts index 9d717bfc..d29d52f2 100644 --- a/assets/js/mi/aid.ts +++ b/assets/js/mi/aid.ts @@ -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); }