XU XUv0.8.8
EN

API

#crypto/rand

import: #crypto/rand

counts: 1 函数, 0 方法, 0 类型, 0 常量, 0 方法集

读密码学随机字节。hosted Unix 走 /dev/urandom;其它目标后置。

read

XuAPI
pub fn read(n int) string

用途

读出最多 max 字节。失败时 throw。

参数

n int
数量、长度或上限(int)

返回

string — 结果字符串