blob: cdb44151e0848a021a09fa6dd3064eb17b2c5849 [file] [log] [blame]
Robbie Zhang18792312017-02-13 13:44:14 -08001/*
2 * This file is part of the coreboot project.
3 *
4 * Copyright 2017 Intel Corporation.
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 */
15#ifndef _RANDOM_H_
16#define _RANDOM_H_
17
18#include <stdint.h>
19
20/*
21 * Generates a 32/64 bit random number respectively.
22 * return 0 on success and -1 on error.
23 */
24int get_random_number_32(uint32_t *rand);
25int get_random_number_64(uint64_t *rand);
26
27#endif /* _RANDOM_H_ */