// Copyright 2021 Jeisson Hidalgo-Cespedes CC-BY-4 #include #include "common.h" useconds_t random_between(useconds_t min, useconds_t max) { return min + (max > min ? (random() % (max - min)) : 0); }