diff --git a/src/cw/cw_rand.c b/src/cw/cw_rand.c index f91974c6..044da35d 100644 --- a/src/cw/cw_rand.c +++ b/src/cw/cw_rand.c @@ -22,12 +22,13 @@ #include #include #include +#include #include #include #include -#include "cw_util.h" +#include "rand.h" #include "log.h" char *cw_rand_dev = "/dev/random"; @@ -57,7 +58,12 @@ int cw_rand_r(uint8_t * dst, int len) } - +/** + * Generate random bytes + * @param dst Destination where to store random bytes + * @param len Number of bytes to generate + * @return Number of generated bytes + */ int cw_rand(uint8_t * dst, int len) { static uint32_t rinit = 0;