|
@@ -4,11 +4,11 @@
|
|
*/
|
|
*/
|
|
|
|
|
|
#include <ctype.h>
|
|
#include <ctype.h>
|
|
-#include <stdlib.h>
|
|
|
|
#include <stdio.h>
|
|
#include <stdio.h>
|
|
|
|
+#include <stdlib.h>
|
|
#include <string.h>
|
|
#include <string.h>
|
|
-#include <unistd.h>
|
|
|
|
#include <time.h>
|
|
#include <time.h>
|
|
|
|
+#include <unistd.h>
|
|
#include <sys/stat.h>
|
|
#include <sys/stat.h>
|
|
|
|
|
|
#define LKC_DIRECT_LINK
|
|
#define LKC_DIRECT_LINK
|
|
@@ -160,7 +160,7 @@ static int conf_askvalue(struct symbol *sym, const char *def)
|
|
}
|
|
}
|
|
case set_random:
|
|
case set_random:
|
|
do {
|
|
do {
|
|
- val = (tristate)(random() % 3);
|
|
|
|
|
|
+ val = (tristate)(rand() % 3);
|
|
} while (!sym_tristate_within_range(sym, val));
|
|
} while (!sym_tristate_within_range(sym, val));
|
|
switch (val) {
|
|
switch (val) {
|
|
case no: line[0] = 'n'; break;
|
|
case no: line[0] = 'n'; break;
|