1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2010-2014 Intel Corporation
11 * Pseudo-random Generators in RTE
21 * Seed the pseudo-random generator.
23 * The generator is automatically seeded by the EAL init with a timer
24 * value. It may need to be re-seeded by the user with a real random
27 * This function is not multi-thread safe in regards to other
28 * rte_srand() calls, nor is it in relation to concurrent rte_rand()
32 * The value of the seed.
35 rte_srand(uint64_t seedval);
38 * Get a pseudo-random value.
40 * The generator is not cryptographically secure.
42 * If called from lcore threads, this function is thread-safe.
45 * A pseudo-random value between 0 and (1<<64)-1.
55 #endif /* _RTE_RANDOM_H_ */