Angel Pons | 32859fc | 2020-04-02 23:48:27 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Robbie Zhang | 1879231 | 2017-02-13 13:44:14 -0800 | [diff] [blame] | 2 | #ifndef _RANDOM_H_ |
3 | #define _RANDOM_H_ | ||||
4 | |||||
5 | #include <stdint.h> | ||||
6 | |||||
7 | /* | ||||
8 | * Generates a 32/64 bit random number respectively. | ||||
9 | * return 0 on success and -1 on error. | ||||
10 | */ | ||||
11 | int get_random_number_32(uint32_t *rand); | ||||
12 | int get_random_number_64(uint64_t *rand); | ||||
13 | |||||
14 | #endif /* _RANDOM_H_ */ |