forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit9426047
committed
Clean up bogosities in use of random(3) and srandom(3) --- do not assume
that RAND_MAX applies to them, since it doesn't. Instead add aconfig.h parameter MAX_RANDOM_VALUE. This is currently set at 2^31-1but could be auto-configured if that ever proves necessary. Also fixsome outright bugs like calling srand() where srandom() is appropriate.1 parent259489b commit9426047
File tree
8 files changed
+47
-25
lines changed- doc/src/sgml
- ref
- src
- backend
- optimizer/geqo
- postmaster
- utils/adt
- include
- optimizer
8 files changed
+47
-25
lines changedLines changed: 12 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
171 | 171 |
| |
172 | 172 |
| |
173 | 173 |
| |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
174 | 186 |
| |
175 | 187 |
| |
176 | 188 |
| |
|
Lines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 |
| - | |
| 2 | + | |
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
| |||
194 | 194 |
| |
195 | 195 |
| |
196 | 196 |
| |
197 |
| - | |
| 197 | + | |
198 | 198 |
| |
199 |
| - | |
| 199 | + | |
200 | 200 |
| |
201 | 201 |
| |
202 | 202 |
| |
|
Lines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 |
| - | |
| 10 | + | |
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
| |||
106 | 106 |
| |
107 | 107 |
| |
108 | 108 |
| |
109 |
| - | |
| 109 | + | |
110 | 110 |
| |
111 |
| - | |
| 111 | + | |
112 | 112 |
| |
113 | 113 |
| |
114 | 114 |
| |
|
Lines changed: 2 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
14 |
| - | |
| 14 | + | |
15 | 15 |
| |
16 | 16 |
| |
17 | 17 |
| |
| |||
1850 | 1850 |
| |
1851 | 1851 |
| |
1852 | 1852 |
| |
1853 |
| - | |
| 1853 | + | |
1854 | 1854 |
| |
1855 | 1855 |
| |
1856 | 1856 |
| |
| |||
2029 | 2029 |
| |
2030 | 2030 |
| |
2031 | 2031 |
| |
2032 |
| - | |
2033 | 2032 |
| |
2034 | 2033 |
| |
2035 | 2034 |
| |
|
Lines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
1315 | 1315 |
| |
1316 | 1316 |
| |
1317 | 1317 |
| |
1318 |
| - | |
| 1318 | + | |
1319 | 1319 |
| |
1320 | 1320 |
| |
1321 | 1321 |
| |
| |||
1328 | 1328 |
| |
1329 | 1329 |
| |
1330 | 1330 |
| |
1331 |
| - | |
| 1331 | + | |
1332 | 1332 |
| |
1333 | 1333 |
| |
1334 | 1334 |
| |
|
Lines changed: 8 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
45 | 45 |
| |
46 | 46 |
| |
47 | 47 |
| |
48 |
| - | |
49 |
| - | |
| 48 | + | |
| 49 | + | |
50 | 50 |
| |
51 |
| - | |
52 | 51 |
| |
53 | 52 |
| |
54 | 53 |
| |
55 | 54 |
| |
56 | 55 |
| |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
57 | 60 |
| |
58 | 61 |
| |
59 | 62 |
| |
60 | 63 |
| |
61 | 64 |
| |
62 | 65 |
| |
63 | 66 |
| |
64 |
| - | |
65 | 67 |
| |
66 | 68 |
| |
67 | 69 |
| |
| |||
96 | 98 |
| |
97 | 99 |
| |
98 | 100 |
| |
99 |
| - | |
| 101 | + | |
100 | 102 |
| |
101 | 103 |
| |
102 | 104 |
| |
|
Lines changed: 10 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
484 | 484 |
| |
485 | 485 |
| |
486 | 486 |
| |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
487 | 496 |
| |
488 | 497 |
| |
489 | 498 |
| |
|
Lines changed: 6 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
6 | 6 |
| |
7 | 7 |
| |
8 | 8 |
| |
9 |
| - | |
| 9 | + | |
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
| |||
26 | 26 |
| |
27 | 27 |
| |
28 | 28 |
| |
29 |
| - | |
| 29 | + | |
30 | 30 |
| |
31 |
| - | |
| 31 | + | |
32 | 32 |
| |
33 |
| - | |
34 |
| - | |
| 33 | + | |
35 | 34 |
| |
36 |
| - | |
| 35 | + | |
| 36 | + | |
37 | 37 |
| |
38 | 38 |
|
0 commit comments
Comments
(0)