diff --git a/include/sys/random.h b/include/sys/random.h index de386b6341..2e206ccae3 100644 --- a/include/sys/random.h +++ b/include/sys/random.h @@ -43,7 +43,6 @@ extern "C" { static __inline__ int random_get_bytes(uint8_t *ptr, size_t len) { - ASSERT(len >= 0); get_random_bytes((void *)ptr,(int)len); return 0; } @@ -52,7 +51,6 @@ random_get_bytes(uint8_t *ptr, size_t len) static __inline__ int random_get_pseudo_bytes(uint8_t *ptr, size_t len) { - ASSERT(len >= 0); get_random_bytes((void *)ptr,(int)len); return 0; }