mirror of
https://github.com/penpot/penpot.git
synced 2026-04-30 13:49:06 +00:00
🐛 Fix random-nonce function (wrong params).
This commit is contained in:
parent
f099e0f90d
commit
a87d83e10e
2
backend/vendor/sodi/src/sodi/prng.clj
vendored
2
backend/vendor/sodi/src/sodi/prng.clj
vendored
@ -34,5 +34,5 @@
|
||||
[^long numbytes]
|
||||
(let [buffer (ByteBuffer/allocate numbytes)]
|
||||
(.putLong buffer (System/currentTimeMillis))
|
||||
(.put buffer (random-bytes (.remaining buffer) rng))
|
||||
(.put buffer (random-bytes (.remaining buffer)))
|
||||
(.array buffer)))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user