Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/polkadot/util-crypto/random/index.ts>randomAsU8a

Package publishing for deno.land/x/polkadot
Go to Latest
function randomAsU8a
import { randomAsU8a } from "https://deno.land/x/polkadot@0.2.36/util-crypto/random/index.ts";

Examples

import { randomAsU8a } from 'https://deno.land/x/polkadot@0.2.36/util-crypto/mod.ts';

randomAsU8a(); // => Uint8Array([...])

Parameters

optional
length = [UNSUPPORTED]

Returns

Uint8Array