Random number generation Flashcards

1
Q

When are random number generators used (give 4)

A
  • Gaming
  • Gambling
  • Creating user IDS
  • Jurors
  • Simulation of complex systems
  • Research experiments
  • Statistical sampling
  • Crypography
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are random numbers?

A
  • A random number is a number chosen by chance
  • They are drawn using random sampling techniques from a set of permissible numbers
  • Each number drawn must be statistically independent of each
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

computing random numbers

A

There are 2 approaches:
- Pseudo-Random number generators
- True random number generators

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Pseudo random number generators (PNRGs)

A

PRNGs use mathematical formulae or precalculated tables to produce sequences of numbers that appear
random.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

PNRG characteristics

A

*Efficiency – can produce many numbers in a short space of time.
*Deterministic - a given sequence of numbers can be reproduced at a later date if the starting point in the sequence is known.
*Periodic - a sequence of numbers will eventually repeat itself.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

True random number generators (TRNGs)

A

*Numbers generated by TRNGs can be considered truly random.
*TRNGs extract randomness from physical phenomena and introduce it into the computing platform.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

TRNG charateristics

A
  • Inefficiency –can take some time to produce numbers
  • Nondeterministic -a given sequence of numbers cannot be reproduced, although the same sequence may occur several times by chance.
  • Aperiodic –a sequence of numbers will not repeat itself, unless by chance.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

PNRG Disadvantages

A
  1. True random numbers are difficult to obtain.
  2. Programs using random numbers are difficult to debug, especially when using a TRNG.
  3. Sequences of random numbers eventually repeat themselves (when using a PRNG).
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Why are pseudo-random numbers a security problem?

A
  • Cryptographic keys are generated using random number generators.
  • But, pseudo-random numbers are deterministic meaning any sequence of pseudorandom numbers can be reproduced anytime.
  • This means cryptographic keys can be reproduced!
  • Cryptography can be broken! Data can be decrypted!
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

secure random numbers

A

A pseudo random number generator that is suitable for cryptographic usage is called a Cryptographically Secure
Pseudo-Random Number Generator (CSPRNG).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What properties does the CSPRNG exhibit

A
  1. It appears random.
  2. Its value is unpredictable in advance.
  3. It cannot be reliably reproduced after generation.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly