From 4eb5089821b014d84fac2ef432da0f7bbaba754e Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Mon, 7 Apr 2008 23:33:50 +0000 Subject: Add rand/rand_r/srand functions for generating pseudo-random bytes. Signed-off-by: Uwe Hermann Acked-by: Jordan Crouse git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3222 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- payloads/libpayload/include/libpayload.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'payloads/libpayload/include') diff --git a/payloads/libpayload/include/libpayload.h b/payloads/libpayload/include/libpayload.h index 2cdb0d00f6..b74fbfeab2 100644 --- a/payloads/libpayload/include/libpayload.h +++ b/payloads/libpayload/include/libpayload.h @@ -53,6 +53,8 @@ #define BYTE_ORDER BIG_ENDIAN #endif +#define RAND_MAX 0x7fffffff + /* Some NVRAM byte definitions */ #define NVRAM_RTC_SECONDS 0 #define NVRAM_RTC_MINUTES 2 -- cgit v1.2.3