Initialize our random generator with codal's (#1021)
This commit is contained in:
parent
80b9ec8950
commit
57f9cbed9d
@ -25,7 +25,10 @@ namespace pxt {
|
|||||||
MicroBit uBit;
|
MicroBit uBit;
|
||||||
MicroBitEvent lastEvent;
|
MicroBitEvent lastEvent;
|
||||||
|
|
||||||
void platform_init() {}
|
void platform_init() {
|
||||||
|
microbit_seed_random();
|
||||||
|
seedRandom(microbit_random(0x7fffffff));
|
||||||
|
}
|
||||||
|
|
||||||
void platform_init();
|
void platform_init();
|
||||||
void usb_init();
|
void usb_init();
|
||||||
|
Loading…
Reference in New Issue
Block a user