3 ms·
You acknowledge your random number generator not being cryptographically secure. (https://github.com/prettymuchbryce/hellobitcoin/blob/20af54ce63ef2182cbc7b83fc
by sjustinas 12y ago
You acknowledge your random number generator not being cryptographically secure. (https://github.com/prettymuchbryce/hellobitcoin/blob/20af54ce63ef2182cbc7b83fc3629999206a0422/keys.go#L87 https://github.com/prettymuchbryce/hellobitcoin/blob/20af54c...) Reseeding the generator every time is wrong as well.
Why not just use crypto/rand instead, which is suitable for this kind of job?
- tokenizerrr 12y agoIt even has a Read([]byte) method for automatically filling a []byte with cryptographically secure psuedorandom numbers, so the loop would not be necessary!