1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2010-2014 Intel Corporation
11 * Pseudo-random Generators in RTE
22 * Seed the pseudo-random generator.
24 * The generator is automatically seeded by the EAL init with a timer
25 * value. It may need to be re-seeded by the user with a real random
29 * The value of the seed.
32 rte_srand(uint64_t seedval)
34 srand48((long unsigned int)seedval);
38 * Get a pseudo-random value.
40 * This function generates pseudo-random numbers using the linear
41 * congruential algorithm and 48-bit integer arithmetic, called twice
42 * to generate a 64-bit value.
45 * A pseudo-random value between 0 and (1<<64)-1.
47 static inline uint64_t
62 #endif /* _RTE_RANDOM_H_ */