Config:...::Random(3)

πŸ“¦ version 1.0, in epel 9

🌸 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 named random.bin if it can be located via the usual include path (the @IncPath variable of the Config::Generator module)
  • random_integer(N, DATA...) β€” return a pseudo-random integer between 0 and N-1, using the given DATA for additional seeding
  • random_seed(DATA) β€” add the given DATA to 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