Rev 1472 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1472 | Rev 1653 | ||
---|---|---|---|
Line 24... | Line 24... | ||
24 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
24 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 | */ |
27 | */ |
28 | 28 | ||
- | 29 | /** @addtogroup libc |
|
- | 30 | * @{ |
|
- | 31 | */ |
|
- | 32 | /** @file |
|
- | 33 | */ |
|
- | 34 | ||
29 | #include <stdlib.h> |
35 | #include <stdlib.h> |
30 | 36 | ||
31 | static long glbl_seed = 1; |
37 | static long glbl_seed = 1; |
32 | 38 | ||
33 | long int random(void) |
39 | long int random(void) |
Line 37... | Line 43... | ||
37 | 43 | ||
38 | void srandom(unsigned int seed) |
44 | void srandom(unsigned int seed) |
39 | { |
45 | { |
40 | glbl_seed = seed; |
46 | glbl_seed = seed; |
41 | } |
47 | } |
- | 48 | ||
- | 49 | ||
- | 50 | /** @} |
|
- | 51 | */ |
|
- | 52 | ||
- | 53 |