Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between a non-secure random number generator and a secure random number generator?

As the title says: What is the difference between a non-secure random number generator and a secure random number generator?

like image 983
Shoban Avatar asked Sep 19 '08 12:09

Shoban


People also ask

What is the difference between random and secure random?

Size: A Random class has only 48 bits whereas SecureRandom can have up to 128 bits. So the chances of repeating in SecureRandom are smaller. Seed Generation: Random uses the system clock as the seed/or to generate the seed.

What is the difference between TRNG and PRNG?

The difference between PRNG and TRNG is deterministic, PRNG is a deterministic random number generator, and TRNG is a non-deterministic random number generator. PRNG generates a long-length random number using algo- rithms based on a short initial value.

What are different types of random number generator techniques?

There are generally two kinds of random number generators: non-deterministic random number generators, sometimes called "true random number generators" (TRNG), and deterministic random number generators, also called pseudorandom number generators (PRNG).

What do we mean when we say a random number generator is cryptographically secure?

A cryptographically secure pseudo random number generator (CSPRNG), is one where the number that is generated is extremely hard for any third party to predict what it might be.


1 Answers

No computationally feasible algorithm should:

  • recover the seed, or
  • predict the "next bit"

for a secure random number generator.

Example: a linear feedback shift register produces lots of random numbers out there, but given enough output, the seed can be discovered and all subsequent numbers predicted.

like image 109
Purfideas Avatar answered Oct 22 '22 17:10

Purfideas