mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-18 04:43:06 +03:00
16 lines
188 B
C
16 lines
188 B
C
|
|
||
|
#include "stdlib.h"
|
||
|
|
||
|
unsigned int seed_o=1;
|
||
|
|
||
|
void srand (unsigned int seed)
|
||
|
{
|
||
|
seed_o=seed;
|
||
|
}
|
||
|
|
||
|
int rand (void)
|
||
|
{
|
||
|
seed_o=(seed_o*25173+13849) & (65535);
|
||
|
return(seed_o);
|
||
|
}
|