blob: c98db64280598692ceb6d52726d443cfb717a5c9 [file] [log] [blame]
Joe Hershbergereafc8db2012-05-23 07:57:58 +00001/*
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 */
17void srand_mac(void);
18
19/*
20 * Get a random number (after seeding with MAC address)
21 *
22 * @return random number
23 */
24unsigned long rand(void);
25
26#endif /* __NET_RAND_H__ */