mirror of
https://github.com/waku-org/nwaku.git
synced 2025-01-10 23:06:34 +00:00
37a3a4fadd
- Separate out types and methods into appropriate module - Add util folder for small utils used in multiple independent places - Update paths
9 lines
191 B
Nim
9 lines
191 B
Nim
# Request utils.
|
|
|
|
import bearssl, stew/byteutils
|
|
|
|
proc generateRequestId*(rng: ref BrHmacDrbgContext): string =
|
|
var bytes: array[10, byte]
|
|
brHmacDrbgGenerate(rng[], bytes)
|
|
toHex(bytes)
|