Module

x/polkadot/mod.ts>utilCrypto.randomAsU8a

Package publishing for deno.land/x/polkadot
Go to Latest
function utilCrypto.randomAsU8a
import { utilCrypto } from "https://dotland.deno.dev/x/polkadot@0.2.35/mod.ts";
const { randomAsU8a } = utilCrypto;

Examples

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

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

Parameters

optional
length = [UNSUPPORTED]

Returns

Uint8Array