diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2008-04-07 23:33:50 +0000 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2008-04-07 23:33:50 +0000 |
commit | 4eb5089821b014d84fac2ef432da0f7bbaba754e (patch) | |
tree | 2bc6f29c9ee05044f3d75f8c890965ffed89053c /payloads/libpayload/include | |
parent | c6092c0f34cde338dcce2cd61cdee8826b4c1a59 (diff) |
Add rand/rand_r/srand functions for generating pseudo-random bytes.
Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Jordan Crouse <jordan.crouse@amd.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3222 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'payloads/libpayload/include')
-rw-r--r-- | payloads/libpayload/include/libpayload.h | 2 |
1 files changed, 2 insertions, 0 deletions
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 |