Better seeds than time(0)?

前端 未结 11 1906
挽巷
挽巷 2021-01-02 08:06

I understand that time(0) is commonly using for seeding random number generators and that it only becomes a problem when the program is being run more than once per second.

11条回答
  •  别那么骄傲
    2021-01-02 09:08

    There is a web service that offers free and paid "true" random bits generated from atmospheric noise: http://www.random.org/

    Wired ran an article on two guys who used basically the noise from a webcam CCD chip to generate random numbers: http://www.wired.com/wired/archive/11.08/random.html

提交回复
热议问题