1
0
mirror of https://github.com/waku-org/nwaku.git synced 2025-02-13 15:36:58 +00:00

9 lines
191 B
Nim
Raw Normal View History

# Request utils.
import bearssl, stew/byteutils
proc generateRequestId*(rng: ref BrHmacDrbgContext): string =
var bytes: array[10, byte]
brHmacDrbgGenerate(rng[], bytes)
toHex(bytes)