shithub: riscv

Download patch

ref: a54fcac01609be9438f6fb05b4da4be01c303383
parent: 314faec39447f98c0dfd96a91dbd25fd757d106d
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sun Apr 21 09:10:39 EDT 2024

devsdp: fix randomization of dial and acceptid

We where allocating the dialid and acceptid using:

rand()<<16 + rand()

this gives a biased values as rand() retuns a 15-bit
number. Instead, use two calls to nrand() to get
the full 32-bit unsigned range.