http_client: fix priority range generated by -E flag

This commit is contained in:
Dmitri Tikhonov 2018-05-10 08:11:32 -04:00
parent 8d029038bb
commit 1cd65f769f

View file

@ -326,7 +326,7 @@ http_client_on_read (lsquic_stream_t *stream, lsquic_stream_ctx_t *st_h)
if (randomly_reprioritize_streams && (st_h->count++ & 0x3F) == 0) if (randomly_reprioritize_streams && (st_h->count++ & 0x3F) == 0)
{ {
old_prio = lsquic_stream_priority(stream); old_prio = lsquic_stream_priority(stream);
new_prio = random() & 0xFF; new_prio = 1 + (random() & 0xFF);
#ifndef NDEBUG #ifndef NDEBUG
const int s = const int s =
#endif #endif