| Extracted from Pike v7.8 release 700 at 2013-06-08.

[Top]
Crypto
Crypto.Random

# Method Crypto.Random.random_string()

Method random_string

  `string random_string(int len)`

Description

  Returns a string of length len with random content. The content is generated by a Yarrow random generator that is constantly updated with output from /dev/random on UNIX and CryptGenRandom on NT. The Yarrow random generator is fed at least the amount of random data from its sources as it outputs, thus doing its best to give at least good pseudo- random data on operating systems with bad /dev/random.