diff --git a/subsys/random/rand32_timer.c b/subsys/random/rand32_timer.c index eaea324eeed..47b9cb8defc 100644 --- a/subsys/random/rand32_timer.c +++ b/subsys/random/rand32_timer.c @@ -31,7 +31,6 @@ static atomic_val_t _rand32_counter; #define _RAND32_INC 1000000003U /** - * * @brief Get a 32 bit random number * * The non-random number generator returns values that are based off the @@ -40,14 +39,12 @@ static atomic_val_t _rand32_counter; * * @return a 32-bit number */ - uint32_t z_impl_sys_rand32_get(void) { return k_cycle_get_32() + atomic_add(&_rand32_counter, _RAND32_INC); } /** - * * @brief Fill destination buffer with random numbers * * The non-random number generator returns values that are based off the @@ -56,10 +53,7 @@ uint32_t z_impl_sys_rand32_get(void) * * @param dst destination buffer to fill * @param outlen size of destination buffer to fill - * - * @return N/A */ - void z_impl_sys_rand_get(void *dst, size_t outlen) { uint8_t *udst = dst;