summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorElyes Haouas <ehaouas@noos.fr>2022-11-08 14:38:41 +0100
committerFelix Singer <felixsinger@posteo.net>2022-12-25 15:09:16 +0000
commit9523e3b7905a3c20214b8af4bacd50abe178eded (patch)
treec2a9ea9438b0d4d1f4c18bcaaccb845bf4b899b6 /src/include
parent70191da272222217cb208ed0972cf4ddb78881f8 (diff)
arch/x86: Use 'enum cb_err'
Change-Id: I38e4b8c6adfaaa45377b2fbe0644285d21841cd1 Signed-off-by: Elyes Haouas <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/68369 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Martin L Roth <gaumless@gmail.com> Reviewed-by: Felix Singer <felixsinger@posteo.net>
Diffstat (limited to 'src/include')
-rw-r--r--src/include/random.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/include/random.h b/src/include/random.h
index 589254e89f..5be918fa77 100644
--- a/src/include/random.h
+++ b/src/include/random.h
@@ -2,13 +2,13 @@
#ifndef _RANDOM_H_
#define _RANDOM_H_
-#include <stdint.h>
+#include <types.h>
/*
* Generates a 32/64 bit random number respectively.
* return 0 on success and -1 on error.
*/
-int get_random_number_32(uint32_t *rand);
-int get_random_number_64(uint64_t *rand);
+enum cb_err get_random_number_32(uint32_t *rand);
+enum cb_err get_random_number_64(uint64_t *rand);
#endif /* _RANDOM_H_ */