Skip to content
Snippets Groups Projects
Commit c635986c authored by schneider's avatar schneider
Browse files

fix(pycardium): Use CSPRNG for random numbers

parent 403d51a2
No related branches found
No related tags found
1 merge request!399Add CSPRNG
Pipeline #4707 passed
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment