mirror of
https://github.com/penpot/penpot.git
synced 2025-05-08 21:05:53 +02:00
🐛 Fix random-nonce
function (wrong params).
This commit is contained in:
parent
f099e0f90d
commit
a87d83e10e
1 changed files with 1 additions and 1 deletions
2
backend/vendor/sodi/src/sodi/prng.clj
vendored
2
backend/vendor/sodi/src/sodi/prng.clj
vendored
|
@ -34,5 +34,5 @@
|
||||||
[^long numbytes]
|
[^long numbytes]
|
||||||
(let [buffer (ByteBuffer/allocate numbytes)]
|
(let [buffer (ByteBuffer/allocate numbytes)]
|
||||||
(.putLong buffer (System/currentTimeMillis))
|
(.putLong buffer (System/currentTimeMillis))
|
||||||
(.put buffer (random-bytes (.remaining buffer) rng))
|
(.put buffer (random-bytes (.remaining buffer)))
|
||||||
(.array buffer)))
|
(.array buffer)))
|
||||||
|
|
Loading…
Add table
Reference in a new issue