API Reference Manual  1.45.0
api/spec/random.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright (c) 2015-2018 Linaro Limited
3  */
4 
11 #ifndef ODP_API_SPEC_RANDOM_H_
12 #define ODP_API_SPEC_RANDOM_H_
13 #include <odp/visibility_begin.h>
14 
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18 
19 #include <odp/api/random_types.h>
20 #include <odp/api/std_types.h>
21 
35 
57 int32_t odp_random_data(uint8_t *buf, uint32_t len, odp_random_kind_t kind);
58 
81 int32_t odp_random_test_data(uint8_t *buf, uint32_t len, uint64_t *seed);
82 
87 #ifdef __cplusplus
88 }
89 #endif
90 
91 #include <odp/visibility_end.h>
92 #endif
Standard C language types and definitions for ODP.
odp_random_kind_t odp_random_max_kind(void)
Query random max kind.
int32_t odp_random_data(uint8_t *buf, uint32_t len, odp_random_kind_t kind)
Generate random byte data.
odp_random_kind_t
Random kind selector.
int32_t odp_random_test_data(uint8_t *buf, uint32_t len, uint64_t *seed)
Generate repeatable random data for testing purposes.
ODP random number API.