Initialize our random generator with codal's (#1021)

This commit is contained in:
Michał Moskal 2018-08-01 10:18:34 -07:00 committed by Guillaume Jenkins
parent 80b9ec8950
commit 57f9cbed9d

View File

@ -25,7 +25,10 @@ namespace pxt {
MicroBit uBit;
MicroBitEvent lastEvent;
void platform_init() {}
void platform_init() {
microbit_seed_random();
seedRandom(microbit_random(0x7fffffff));
}
void platform_init();
void usb_init();