romanornr / autodealer

Random number generator seed doesn't have enough entropy GO-S1033
Security
Major
4 months agoa year old
Time based seeds have insufficient entropy
 8)
 9
10func RandomizeSize(minimalSize, maximumSize float64) decimal.Decimal {
11	rand.Seed(time.Now().Unix())12	x := rand.Float64()*(maximumSize-minimalSize) + minimalSize
13	r := decimal.NewFromFloat(x)
14	hundred := decimal.New(100, 1)