srand((unsigned)time(NULL))和srand(time(0))有什么区别?

如题
2025-02-25 09:43:26
推荐回答(1个)
回答1:

没区别,只是后者可能会有警报,因为time返回的是有符号的,而srand接受的是无符号的