openssl/crypto/rand
Pauli 55755fbf42 rand: implement an unbiased random integer from a range
Refer: https://github.com/apple/swift/pull/39143 for a description
of the algorithm.

It is optimal in the sense of having:

* no divisions
* minimal number of blocks of random bits from the generator

Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22499)
2023-11-01 12:05:28 +01:00
..
build.info rand: implement an unbiased random integer from a range 2023-11-01 12:05:28 +01:00
prov_seed.c rand: fix seeding from a weak entropy source 2023-10-24 11:14:11 +01:00
rand_deprecated.c Update copyright year 2022-05-03 13:34:51 +01:00
rand_egd.c Clarify use of EGD for HPNS in rand/rand_egd.c comments. 2022-06-17 09:28:19 +10:00
rand_err.c rand: add extra error code 2023-09-27 17:22:54 +01:00
rand_lib.c Coverity 1545175: use after free 2023-10-02 19:18:21 +11:00
rand_local.h
rand_meth.c
rand_pool.c rand: improve error message for rand pool overflows 2023-10-24 11:14:02 +01:00
rand_uniform.c rand: implement an unbiased random integer from a range 2023-11-01 12:05:28 +01:00
randfile.c