xref: /openbmc/u-boot/net/net_rand.h (revision 3f82d89d)
1 /*
2  *	Copied from LiMon - BOOTP.
3  *
4  *	Copyright 1994, 1995, 2000 Neil Russell.
5  *	(See License)
6  *	Copyright 2000 Paolo Scaffardi
7  */
8 
9 #ifndef __NET_RAND_H__
10 #define __NET_RAND_H__
11 
12 #define RAND_MAX 0xffffffff
13 
14 /*
15  * Seed the random number generator using the eth0 MAC address
16  */
17 void srand_mac(void);
18 
19 /*
20  * Get a random number (after seeding with MAC address)
21  *
22  * @return random number
23  */
24 unsigned long rand(void);
25 
26 #endif /* __NET_RAND_H__ */
27