Randomness and entropy#

Todo

Describe the following problematics:

  • Standard random utilities.

  • Entropy sources available from a thox computer.

  • How pseudorandom can be used to extend the number of bytes generated using a given entropy.

Todo

Reformulate elements from the OneOS protocols page:

ComputerCraft implements math.random() on top of the Cobalt implementation of math.random, which in turn depends on java.util.Random.

By default, this utility requires a seed set using math.randomseed(), which “sets the seed of the random number generator to a value very likely to be distinct from any other invocation of this constructor”, currently System.nanoTime().