提交 d14c8da4 编写于 作者: O openharmony_ci 提交者: Gitee

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

Merge pull request !44 from zhangfanfan2/OpenHarmony_1.0.1_release
#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.
先完成此消息的编辑!
想要评论请 注册