Skip to content

mabel.utils.entropy

Justin Joyce edited this page Jul 15, 2021 · 4 revisions

random_string (length, encoder)

Generate a random string, this is done by creating an array of random bytes and then base64 encoding them. This gives a higher density of entropy than selecting random character.

random_int ()

Select a random integer (64bit)

random_range (min, max)

Select a random integer between two numbers

bytes_to_int (xbytes)

random_choice (options)

Select an item from a list of values


This file has been automatically generated, it is not the truth. If in doubt the code will tell you unambiguously what it does.

Clone this wiki locally