This project is closed and read-only.
Backport #2962 » 0001-random-reinitialize-random-when-resetting.patch
| random.c | ||
|---|---|---|
|
struct Random *r = &default_rand;
|
||
|
uninit_genrand(&r->rnd.mt);
|
||
|
r->rnd.seed = INT2FIX(0);
|
||
|
rand_init(&r->rnd.mt, random_seed());
|
||
|
}
|
||
|
void
|
||
- « Previous
- 1
- 2
- Next »