-2

If you set up a pseudo-random number generator in two different locations, but with the same seed, and you assume that they are both on the same number of ticks from startup, will they output the same number?

  • 2
    "The PRNG-generated sequence is not truly random, because it is completely determined by a relatively small set of initial values, called the PRNG's seed " <-- My point. – Parthian Shot Jan 27 '16 at 5:28
  • I asked the question here, instead of looking at Wikipedia, because now I have lots of helpful answers to do further research on, instead of one author's potentially mistaken viewpoint. Thank you though, for reminding me that Wikipedia is a good place to start. :) – user98349 Jan 28 '16 at 7:30
  • I have a PRNG that harvests additional entropy from the OS PRNG in addition to the given seed, so in this case the answer is no, it depends on the specific PRNG – Richie Frame Jan 30 '16 at 10:53
2

Yes. This is the fundamental point of a lot of 2-factor authentication tokens. The assumption that using the same algorithm, with the same secret starting conditions will cause the mobile device to output the same as the central device, so someone can enter the value on their screen, and it'll match what the central system says.

0

Yes, as long as it is the same algorithm. Just calling the default “random number” function of a programming language, even with the same seed and number of ticks from start, may or may not produce the same result in different versions of the runtime environment, because the algorithm may become replaced. So if your program relies on this to work properly, the programming must be clarified be sure to always get the same algorithm. It would be good to have some assurance from the programming language developers also concerning future versions of the language / runtime environment.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy