随机数生成接口

int rand_bytes(uint8_t *buf, size_t buflen);

rand_bytes函数从/dev/urandom文件中读取buflen字节的随机数并存放至buf指向的数组中。

函数执行成功返回1,失败返回-1。