简介
RT
解决方案
最终linux上的random函数,发现了这么一句英文
/* These are the functions that actually do things. The random',
srandom', initstate' and
setstate' functions are those from BSD Unices. The rand' and
srand' functions are required by the ANSI standard.We provide both interfaces to the same random number generator. `/
也就是说 random 和 srandom 是 BSD的函数(可能随机数涉及系统的内核构建)
rand 和 srand 是 ANSI 标准,(应该是在windows函数上的)
/ Return a random long integer between 0 and RAND_MAX inclusive. */
extern long int random (void) __THROW;