Do stateless random number generators exist?

前端 未结 10 2036
孤街浪徒
孤街浪徒 2020-11-29 10:12

Is there a difference between generating multiple numbers using a single random number generator (RNG) versus generating one number per generator and discarding it? Do both

10条回答
  •  余生分开走
    2020-11-29 10:42

    The use of a secure PRNG depends on your application. What are the random numbers used for? If they're something of real value (e.g. anything cryptographically related), you wouldn't want to use anything less.

    Secure PRNGs are much slower, and may require libraries to do operation of arbitrary precision, and primality testing, etc etc...

提交回复
热议问题