DPDK 22.11.7
rte_random.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2010-2014 Intel Corporation
3 */
4
5#ifndef _RTE_RANDOM_H_
6#define _RTE_RANDOM_H_
7
14#ifdef __cplusplus
15extern "C" {
16#endif
17
18#include <stdint.h>
19
20#include <rte_compat.h>
21
36void
37rte_srand(uint64_t seedval);
38
49uint64_t
51
65uint64_t
66rte_rand_max(uint64_t upper_bound);
67
83__rte_experimental
84double rte_drand(void);
85
86#ifdef __cplusplus
87}
88#endif
89
90
91#endif /* _RTE_RANDOM_H_ */
uint64_t rte_rand(void)
uint64_t rte_rand_max(uint64_t upper_bound)
void rte_srand(uint64_t seedval)
__rte_experimental double rte_drand(void)