]> git.ipfire.org Git - people/ms/u-boot.git/blame - net/net_rand.h
net: Move MAC-seeded rand out of bootp.c
[people/ms/u-boot.git] / net / net_rand.h
CommitLineData
eafc8db0
JH
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 */
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__ */