summaryrefslogtreecommitdiff
path: root/shared-module/random
diff options
context:
space:
mode:
authoraskpatricw <4002194+askpatrickw@users.noreply.github.com>2020-12-15 15:43:27 -0800
committeraskpatricw <4002194+askpatrickw@users.noreply.github.com>2020-12-15 15:43:27 -0800
commit1d37d3f43b528f528816f066435fa87adf811b90 (patch)
treeec70bd9ad59fb43655854be9e2e06f20c5b1c6c0 /shared-module/random
parente2c833adf468cd84f8dfcc03cf47de9da0c34b1f (diff)
parenta2d2d699e4d431d4459eae172444bd569559ff02 (diff)
Merge branch 'main' of https://github.com/adafruit/circuitpython into main
Diffstat (limited to 'shared-module/random')
-rw-r--r--shared-module/random/__init__.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shared-module/random/__init__.c b/shared-module/random/__init__.c
index 5cc20e5b5..42499bc0a 100644
--- a/shared-module/random/__init__.c
+++ b/shared-module/random/__init__.c
@@ -44,7 +44,7 @@ STATIC uint32_t yasmarang(void)
{
if (yasmarang_pad == 0xeda4baba) {
if (!common_hal_os_urandom((uint8_t *)&yasmarang_pad, sizeof(uint32_t))) {
- yasmarang_pad = common_hal_time_monotonic() & 0xffffffff;
+ yasmarang_pad = common_hal_time_monotonic_ms() & 0xffffffff;
}
}
yasmarang_pad += yasmarang_dat + yasmarang_d * yasmarang_n;