-
Notifications
You must be signed in to change notification settings - Fork 12
Closed
Description
Consider this line.
This generates a nonce using the default random, which is Mersenne Twister. MT is not a CSPRNG, i.e. the internal state and hence all past and future random numbers can be extracted from a few random numbers from the stream.
The nonce generation should use a secure random instead. For example, const CSPRNG = Random.RandomDevice()
and randstring(CSPRNG, length)
would do the job.
Cf general discussion (here)[https://github.com/JuliaLang/julia/issues/32954].
Metadata
Metadata
Assignees
Labels
No labels