]> git.sur5r.net Git - u-boot/blobdiff - include/common.h
tegra: enable CONFIG_ENV_VARS_UBOOT_CONFIG
[u-boot] / include / common.h
index 7cf15c53b7454278333e695be86ba79d55038419..d1dd65a851ea3f27786da1102a11d94cd66ba7f0 100644 (file)
@@ -760,6 +760,16 @@ char *     strmhz(char *buf, unsigned long hz);
 /* lib/crc32.c */
 #include <u-boot/crc.h>
 
+/* lib/rand.c */
+#if defined(CONFIG_RANDOM_MACADDR) || \
+       defined(CONFIG_BOOTP_RANDOM_DELAY) || \
+       defined(CONFIG_CMD_LINK_LOCAL)
+#define RAND_MAX -1U
+void srand(unsigned int seed);
+unsigned int rand(void);
+unsigned int rand_r(unsigned int *seedp);
+#endif
+
 /* common/console.c */
 int    console_init_f(void);   /* Before relocation; uses the serial  stuff    */
 int    console_init_r(void);   /* After  relocation; uses the console stuff    */