曲径通幽论坛

标题: linux get_random_bytes error: implicit declaration of function [打印本页]

作者: beyes    时间: 2015-4-9 15:30
标题: linux get_random_bytes error: implicit declaration of function
在使用 get_random_bytes() 函数获取随机数时,提示错误:
linux get_random_bytes error: implicit declaration of function

解决办法时,要包含相应的头文件:
  1. #include <linux/random.h>
复制代码





欢迎光临 曲径通幽论坛 (http://www.groad.net/bbs/) Powered by Discuz! X3.2