projects
/
physik
/
nlsop.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
-
[physik/nlsop.git]
/
random.c
diff --git
a/random.c
b/random.c
index
17cbd73
..
4d96243
100644
(file)
--- a/
random.c
+++ b/
random.c
@@
-9,6
+9,7
@@
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
+#include <stdlib.h>
#include "random.h"
@@
-62,7
+63,7
@@
u32 get_rand(u32 max)
}
c_ptr=b_ptr;
}
-
+
return((u32)(*(c_ptr++)*(max*1.0/((long long unsigned int)URAND_MAX+1))));
}