e1464fd317
Fixes https://github.com/docker/distribution/issues/3097 Signed-off-by: Yong Wen Chua <lawliet89@users.noreply.github.com>
11 lines
220 B
Go
11 lines
220 B
Go
// +build go1.6
|
|
|
|
package sdkrand
|
|
|
|
import "math/rand"
|
|
|
|
// Read provides the stub for math.Rand.Read method support for go version's
|
|
// 1.6 and greater.
|
|
func Read(r *rand.Rand, p []byte) (int, error) {
|
|
return r.Read(p)
|
|
}
|