Random Numbers Flashcards

1
Q

Computing Random Numbers

A

It is difficult to get a computer to do something by chance; they are deterministic. The same input generates the same output.

Two main approaches for generating random numbers: pseudo RNG and true RNG.

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

Pseudo Random Number Generators

A

PRNG uses mathematical formulae to produce sequence of numbers that appear random - but they are not. In reality you are getting the next number from a predetermined list.

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

PRNG Characteristics

A

Efficiency - can produce many numbers in short time
Deterministic - a given sequence can be reproduced at a later date if the start point (seed state) 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
4
Q

What is a PRNG suitable for?

A

Applications where many numbers are required and where it is useful that the same sequence can be replayed easily (for repeated tests, repeated experiments and simulations)

Not suitable for apps where it is important for unpredictable numbers i.e. encryption and gambling.

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

True Random Number Generator

A

TRNGs extract randomness from physical phenomena and introduce it into the computing platform.

The phenomena can be simple: little variations in mouse movements, keystroke time etc

Or complex: a radioactive source decaying, atmospheric noise or background noise

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

TRNG Characteristics

A

Inefficiency - takes more time to produce numbers
Nondeterministic - given sequence of numbers cannot be reproduced
Aperiodic - a sequence will not repeat unless by chance

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

What are TRNGs suitable for?

A

Applications where numbers are unpredictable and random, such as data encryption or gambling

They are less suitable for simulation and modelling applications due to poor efficiency and nondeterminism.

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

Why are PRNG numbers a security problem?

A

Cryptographic keys are generated using random number generators; pseudo random numbers are deterministic meaning any sequence of pseudorandom numbers can be reproduced.

Meaning cryptography can be broken and data decrypted!

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

Secure Random Numbers

A

A pseudo random number generator that is suitable for cryptographic usage is called a cryptographically secure pseudo RNG - introduce randomness from a high quality source (API)

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

Properties of a CSPRNG

A

A CSPRNG will need to exhibit some (or all) of these values:
a) It appears random
b) Its value is unpredictable in advance
c) It cannot be reliably reproduced after generation.

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