func GenRandomBytes(size int) (randomBytes []byte) {
rand.Seed(time.Now().UnixNano())
randomBytes = make([]byte, size)
rand.Read(randomBytes)
return randomBytes
}
Context
Pay attention to this line, otherwise everytime randomBytes is the same.
rand.Seed(time.Now().UnixNano())






Thanks for sharing. I read many of your blog posts, cool, your blog is very good.
Can you be more specific about the content of your article? After reading it, I still have some doubts. Hope you can help me. https://accounts.binance.com/register-person?ref=IXBIAFVY
Your point of view caught my eye and was very interesting. Thanks. I have a question for you.