blob: 24b1d7ff675a6a075198103b7be4f6df76d24a40 [file] [log] [blame]
Angel Pons32859fc2020-04-02 23:48:27 +02001/* SPDX-License-Identifier: GPL-2.0-only */
2/* This file is part of the coreboot project. */
Robbie Zhang18792312017-02-13 13:44:14 -08003#ifndef _RANDOM_H_
4#define _RANDOM_H_
5
6#include <stdint.h>
7
8/*
9 * Generates a 32/64 bit random number respectively.
10 * return 0 on success and -1 on error.
11 */
12int get_random_number_32(uint32_t *rand);
13int get_random_number_64(uint64_t *rand);
14
15#endif /* _RANDOM_H_ */