提交 631df9f2 编写于 作者: O openharmony_ci 提交者: Gitee

!43 srand设置随机数种子的实现存在问题

Merge pull request !43 from zhangfanfan2/master
......@@ -32,11 +32,9 @@
#include <stdlib.h>
#include <stdint.h>
static uint64_t seed;
void srand(unsigned s)
{
return srandom(seed);
return srandom(s);
}
int rand(void)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册