Commit c635986c authored by schneider's avatar schneider
Browse files

fix(pycardium): Use CSPRNG for random numbers

parent 403d51a2
......@@ -188,7 +188,7 @@ static mp_obj_t mp_os_urandom(mp_obj_t size_in)
vstr_t vstr;
vstr_init_len(&vstr, size);
epic_trng_read((uint8_t *)vstr.buf, size);
epic_csprng_read((uint8_t *)vstr.buf, size);
return mp_obj_new_str_from_vstr(&mp_type_bytes, &vstr);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment