My code:
uint32_t err_code;
uint8_t randomBytes[6];
err_code = sd_rand_application_vector_get(randomBytes, sizeof(randomBytes));
When this function is called my system goes off in the weeds. Anyone else have this problem?
=]
My code:
uint32_t err_code;
uint8_t randomBytes[6];
err_code = sd_rand_application_vector_get(randomBytes, sizeof(randomBytes));
When this function is called my system goes off in the weeds. Anyone else have this problem?
=]
My guess is you were asking for more bytes than were available in the buffer. The code Håkon provided makes sure you never ask for more bytes than what is available.
My guess is you were asking for more bytes than were available in the buffer. The code Håkon provided makes sure you never ask for more bytes than what is available.