Lines 1-6
Link Here
|
1 |
--- run.c.orig 2009-11-26 23:59:16.000000000 +0000 |
1 |
--- run.c.orig 2011-04-30 20:09:59.000000000 +0000 |
2 |
+++ run.c 2010-04-29 22:50:49.000000000 +0000 |
2 |
+++ run.c 2011-05-08 11:35:23.000000000 +0000 |
3 |
@@ -1504,20 +1504,78 @@ |
3 |
@@ -1506,13 +1506,71 @@ |
4 |
nextarg = nextarg->nnext; |
4 |
nextarg = nextarg->nnext; |
5 |
} |
5 |
} |
6 |
break; |
6 |
break; |
Lines 74-84
Link Here
|
74 |
break; |
74 |
break; |
75 |
case FSRAND: |
75 |
case FSRAND: |
76 |
if (isrec(x)) /* no argument provided */ |
76 |
if (isrec(x)) /* no argument provided */ |
77 |
u = time((time_t *)0); |
77 |
@@ -1520,7 +1578,7 @@ |
78 |
else |
78 |
else |
79 |
u = getfval(x); |
79 |
u = getfval(x); |
|
|
80 |
tmp = u; |
80 |
- srand((unsigned int) u); |
81 |
- srand((unsigned int) u); |
81 |
+ srandom((unsigned int) u); |
82 |
+ srandom((unsigned int) u); |
|
|
83 |
u = srand_seed; |
84 |
srand_seed = tmp; |
82 |
break; |
85 |
break; |
83 |
case FTOUPPER: |
|
|
84 |
case FTOLOWER: |