There was an error while loading. Please reload this page.
1 parent a2abb9e commit efe92fdCopy full SHA for efe92fd
1 file changed
common/util/random.go
@@ -28,7 +28,7 @@ type RandomGenerator struct {
28
29
// NewRandomGenerator creates a RandomGenerator.
30
func NewRandomGenerator(seed int64) RandomGenerator {
31
- return RandomGenerator{rand.New(rand.NewSource(int64(seed)))}
+ return RandomGenerator{rand.New(rand.NewSource(seed))}
32
}
33
34
// UniformVector makes a vec filled with uniform random floats,
0 commit comments