XU XUv0.8.8
中文

API

#crypto/rand

import: #crypto/rand

counts: 1 fns, 0 methods, 0 types, 0 consts, 0 ifaces

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.

Parameters

n int
count, length, or limit (int)

Returns

string — result string