Lines Matching full:random
26 * The function initializes nn structure pointed by 'out' to a random value of
27 * byte length 'len'. The resulting nn will have a uniformly random value in
45 * The function initializes nn structure pointed by 'out' to a random value of
46 * *random* byte length less than or equal to 'max_len'. Unlike the function
47 * above (nn_get_random_len()), the resulting nn will have a uniformly random
48 * value in in [0, 2^(8 * len)[ *with* length selected at random in
52 * testing purposes. Its main goal is to generate nn with random length, not
53 * random numbers. For instance, for a given value of max_len, the function
75 * is initialized to an unbiased random value in ]0,q[. On error, the
79 * Generating a random value in ]0,q[ is done by reducing a large random
80 * value modulo q. The random value is taken with a length twice the one
89 * 2) generate a random value tmp_rand twice the size of q
115 /* 2) generate a random value tmp_rand twice the size of q */ in nn_get_random_mod()
122 /* Use nn_mod_notrim to avoid exposing the generated random length */ in nn_get_random_mod()