(multifire, new): Reseeding the PRNG with the current time is not a
good idea. Letting players trigger it is an extraordinarily bad idea. Remove.
This commit is contained in:
parent
8ba9ca5869
commit
256724c39f
2 changed files with 0 additions and 2 deletions
|
@ -553,7 +553,6 @@ multifire(void)
|
|||
pr("Kaboom!!!\n");
|
||||
prb = (double)(range2 ? (trange / range2) : 1.0);
|
||||
prb *= prb;
|
||||
srandom(time(NULL));
|
||||
if (chance(prb)) {
|
||||
pr("Wind deflects shell%s.\n", splur(shots));
|
||||
/* dam = (int)((double)dam / 2.0);*/
|
||||
|
|
|
@ -103,7 +103,6 @@ new(void)
|
|||
return RET_SYN;
|
||||
}
|
||||
} else {
|
||||
srandom(time(NULL));
|
||||
for (i = 0; i < 300 && !player->aborted; i++) {
|
||||
/* Both x and y should be either odd or even */
|
||||
x = (random() % WORLD_X) - (WORLD_X / 2);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue