Questions: Pseudorandom Generators

5 questions to test your understanding

Score: 0 / 5
Question 1 Short Answer

A PRG G maps 128-bit seeds to 256-bit outputs. There are 2^128 possible outputs (one per seed), but 2^256 possible 256-bit strings. Why doesn't this make PRG output trivially distinguishable from random?

Think about your answer, then reveal below.
Question 2 Multiple Choice

The Goldreich-Levin theorem states that any one-way function f has a hard-core predicate: a bit b(x) that is easy to compute from x but indistinguishable from random given only f(x). How does this yield a PRG?

AThe hard-core bit is used as the PRG's expansion factor
BGiven OWF f and hard-core predicate b, define G(x) = (f(x), b(x)). The output is one bit longer than the input (the hard-core bit is the 'extra' bit), and indistinguishability follows because b(x) looks random given f(x). Iterating this construction by feeding f(x) back as input yields arbitrary-length expansion
CThe hard-core bit replaces the need for a seed
DHard-core predicates are used to verify PRG output, not to construct it
Question 3 True / False

A PRG with expansion factor 2 (mapping n bits to 2n bits) can be composed with itself to achieve any polynomial expansion factor.

TTrue
FFalse
Question 4 Multiple Choice

Why is computational indistinguishability (rather than statistical indistinguishability) the right definition for PRGs?

AStatistical indistinguishability is impossible to achieve with deterministic functions
BComputational indistinguishability requires that no polynomial-time algorithm can distinguish the distributions, which is exactly the threat model in cryptography (polynomial-time adversaries). Statistical indistinguishability would require the output distribution to be close to uniform in total variation distance — impossible when the output is longer than the seed, since only 2^n of 2^{l(n)} strings are reachable
CComputational indistinguishability is weaker and therefore easier to prove
DStatistical tests are unreliable, so computational indistinguishability avoids them
Question 5 Short Answer

A CSPRNG used in practice (like ChaCha20) and a theoretical PRG built from OWFs serve the same conceptual purpose but differ dramatically in efficiency. What explains the gap?

Think about your answer, then reveal below.