pseudo-random number

A number produced by a formula that looks random but is completely determined by where the sequence started.

Pseudo-random values can be predicted, so using them for passwords or tokens lets attackers guess secrets.

In more detail

Python's random module uses the Mersenne Twister algorithm, which is fine for games and simulations but predictable to an attacker who sees enough output. For passwords, tokens and anything secret use the secrets module.

Related terms

Taught in

References