DPDK
23.03.0
lib
eal
include
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
15
extern
"C"
{
16
#endif
17
18
#include <stdint.h>
19
20
#include <rte_compat.h>
21
36
void
37
rte_srand
(uint64_t seedval);
38
50
uint64_t
51
rte_rand
(
void
);
52
67
uint64_t
68
rte_rand_max
(uint64_t upper_bound);
69
87
__rte_experimental
88
double
rte_drand
(
void
);
89
90
#ifdef __cplusplus
91
}
92
#endif
93
94
95
#endif
/* _RTE_RANDOM_H_ */
rte_rand
uint64_t rte_rand(void)
rte_srand
void rte_srand(uint64_t seedval)
rte_rand_max
uint64_t rte_rand_max(uint64_t upper_bound)
rte_drand
__rte_experimental double rte_drand(void)
Generated by
1.8.13