Ixia
Ixia is a cryptographically secure RNG library. It mainly merges secrets
'
security with random
's versatility, but also adds some of its own
functions, such as ixia.passphrase()
,
ixia.shuffled()
or
ixia.universe_rand()
. All random
values are generated using urandom
(or BCryptGenRandom
on Windows).
⚠️ Important Notes
While supporting Python 3.8+, Ixia is based on the Python 3.12 implementation
of the random
module. The following changes have been made to the module
since Python 3.8:
getrandbits
accepts 0 fork
choices
raises aValueError
if all weights are zerosample
has a newcounts
parametergauss
,expovariate
andnormalvariate
have default parameter valuesbinomialvariate
was added
Additionally, Ixia executes 3.9+ deprecations, thus:
ixia.rand_range
doesn't convert non-integer types to equivalent integersixia.sample
doesn't supportset
as a sequence typeixia.shuffle
doesn't support therandom
parameter
On the following pages of this documentation, function signatures often mention
the Number
type—that's simply an alias to Union[int, float]
.
Credits
- The original
random
module documentation & implementation: Python Software Foundation universe_rand
implementation: qexat