mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-01-03 22:43:09 +00:00
more toHex fix
This commit is contained in:
parent
6acf807e09
commit
071334de5c
@ -7,4 +7,4 @@ import bearssl/rand, stew/byteutils
|
||||
proc generateRequestId*(rng: ref HmacDrbgContext): string =
|
||||
var bytes: array[10, byte]
|
||||
hmacDrbgGenerate(rng[], bytes)
|
||||
return toHex(bytes)
|
||||
return byteutils.toHex(bytes)
|
||||
|
||||
@ -30,7 +30,7 @@ type WakuFilterClient* = ref object of LPProtocol
|
||||
func generateRequestId(rng: ref HmacDrbgContext): string =
|
||||
var bytes: array[10, byte]
|
||||
hmacDrbgGenerate(rng[], bytes)
|
||||
return toHex(bytes)
|
||||
return byteutils.toHex(bytes)
|
||||
|
||||
proc addSubscrObserver*(wfc: WakuFilterClient, obs: SubscriptionObserver) =
|
||||
wfc.subscrObservers.add(obs)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user