Skip to main content
Module

x/polkadot/mod.ts>utilCrypto.randomAsU8a

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

Examples

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

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

Parameters

optional
length = [UNSUPPORTED]

Returns

Uint8Array