common: Move random-number functions into their own header
Create a new rand.h header file and move functions into it, to reduce the size of common.h Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
@@ -325,12 +325,6 @@ char * strmhz(char *buf, unsigned long hz);
|
||||
/* lib/crc32.c */
|
||||
#include <u-boot/crc.h>
|
||||
|
||||
/* lib/rand.c */
|
||||
#define RAND_MAX -1U
|
||||
void srand(unsigned int seed);
|
||||
unsigned int rand(void);
|
||||
unsigned int rand_r(unsigned int *seedp);
|
||||
|
||||
/*
|
||||
* STDIO based functions (can always be used)
|
||||
*/
|
||||
|
Reference in New Issue
Block a user