status-im / nim-websock

Websocket for Nim
83 stars 15 forks source link

replace `utils` module with direct `generate` calls #148

Closed etan-status closed 1 year ago

etan-status commented 1 year ago

The utils module uses a convoluted mechanism for filling byte arrays with random data. The generate function can be used directly, making the utils module obsolete.

etan-status commented 1 year ago

For context, the genMaskKey and genWebSecKey helpers were originally added in #2