基于C语言什么的算法是RAND()?算法、语言、RAND

2023-09-11 06:53:34 作者:凭栏、浅忆君

我一直在研究RAND()一会儿来源$ C ​​$ C,但到现在为止我无法找出函数的全貌。

I have been researching the source code of Rand() for a while, but until now I couldn't figure out the whole picture of the function.

以下是源$ C ​​$ CS发现,由我研究的:

The following are the source codes found and researched by me:

rand.c

random.c

可能有人提供一些建议和帮助我吗?

Could somebody provide some advices or assistance for me?

太感谢了!

推荐答案

兰德是基于像MAC地址的几件事情应该是每台机器上独一无二的。有几个实现,以验证该返回值是随机的

Rand is based on several things like mac address which should be unique on every machine. there are several implementations to verify that the returned value is "random"