mirror of
https://github.com/cupcakearmy/occulto.git
synced 2025-09-06 09:20:48 +00:00
cleanup types
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import { type TypedArray } from '../utils/base.js'
|
||||
import { getCrypto } from './crypto.js'
|
||||
|
||||
export async function getRandomBytes(bytes: number): Promise<TypedArray> {
|
||||
export async function getRandomBytes(bytes: number): Promise<ArrayBufferLike> {
|
||||
if (bytes <= 0) throw new Error('Invalid number of bytes')
|
||||
|
||||
const buffer = new Uint8Array(bytes)
|
||||
|
Reference in New Issue
Block a user