diff --git a/rand.c b/rand.c index 8a288c9835..975bf18d5b 100644 --- a/rand.c +++ b/rand.c @@ -66,7 +66,7 @@ uint32_t random_uniform(uint32_t n) return x / (max / n); } -void random_buffer(uint8_t *buf, size_t len) +void __attribute__((weak)) random_buffer(uint8_t *buf, size_t len) { uint32_t r = 0; for (size_t i = 0; i < len; i++) {