Config:...::Random(3)
πΈ NAME πΈ
okay so bestie, welcome to the Config:...::Random(3) page β it's from the User Contributed Perl Documentation, and it's all about Config::Generator::Random, aka the Config::Generator pseudo-random support module. π
β¨ DESCRIPTION β¨
This module eases the generation of pseudo-random "data". The goal is literally to be able to generate random but reproducible data, for instance to smear times in crontabs. π
The initial seed usually comes from a file named random.bin that can be created with something like:
$ dd if=/dev/urandom of=random.bin bs=512 count=1
Then, modules can use the random_seed() function to make sure that what they generate is different from what other modules generate. π¦
Finally, modules can use the random_integer() function to generate reproducible pseudo-random integers. No cap. π
π«Ά FUNCTIONS π«Ά
This module provides the following functions (none of them being exported by default):
random_init([PATH])β initialize the pseudo-random generator with the content of the given file or by using a file namedrandom.binif it can be located via the usual include path (the@IncPathvariable of theConfig::Generatormodule)random_integer(N, DATA...)β return a pseudo-random integer between0andN-1, using the givenDATAfor additional seedingrandom_seed(DATA)β add the givenDATAto the initial seed used by the pseudo-random generator
π AUTHOR π
Lionel Cons <http://cern.ch/lionel.cons>
Copyright (C) CERN 2013-2016
and that's the whole vibe, besties π«Άβ¨ this iconic little page was brought to you by perl v5.32.1, dated 2019-07-26 β mwah ππ
π¦ where this page comes from
- epel 9: perl-Config-Generator 1.0-10.el9 Β· GPL+ or Artistic
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms