From 9694f6d5a3a7e2346c6620df288615003dcbbcb6 Mon Sep 17 00:00:00 2001 From: Taea Vogel Date: Fri, 1 Nov 2024 19:29:47 -0400 Subject: [PATCH] fix android build --- packages/backend/src/nest/common/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/src/nest/common/utils.ts b/packages/backend/src/nest/common/utils.ts index 1277203caa..344141893b 100644 --- a/packages/backend/src/nest/common/utils.ts +++ b/packages/backend/src/nest/common/utils.ts @@ -123,7 +123,7 @@ export function generateRandomOnionAddress(length: number = 56): string { let randomString = '' const randomValues = new Uint32Array(length) - crypto.getRandomValues(randomValues) + crypto.webcrypto.getRandomValues(randomValues) for (let i = 0; i < length; i++) { randomString += charset[randomValues[i] % charsetLength]