提交 5031fe8d 编写于 作者: Y YOUR_NAME

fix: srand未使用入参,实现存在问题

close: #I3W9ZP
Signed-off-by: Nzff <zhangfanfan2@huawei.com>
Change-Id: Ica4da7311f636d0afe34c5182bef518a62c60cc1
上级 71193f47
#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.
先完成此消息的编辑!
想要评论请 注册