XU XUv0.16.0

#crypto/rand

import: #crypto/rand

counts: 1 functions, 0 methods, 0 types, 0 constants, 0 method sets

Read cryptographic random bytes. Hosted Unix uses /dev/urandom; other targets come later.

read

XuAPI
pub fn read(n int) string

Purpose

Read up to max bytes. Throws on failure; handle the error or propagate it to the caller.

Parameters

n int
count, length, or limit (int)

Returns

string — result string