BYTES_FOR_QID
get_random_bytes(&ran, sizeof(ran) - BYTES_FOR_QID);
#define BYTES_FOR_QID_SHIFT (BYTES_FOR_QID * 8)