(filename string)
| 297 | var mintDataDir = os.Getenv("MINT_DATA_DIR") |
| 298 | |
| 299 | func getMintDataDirFilePath(filename string) (fp string) { |
| 300 | if mintDataDir == "" { |
| 301 | return fp |
| 302 | } |
| 303 | return filepath.Join(mintDataDir, filename) |
| 304 | } |
| 305 | |
| 306 | func newRandomReader(seed, size int64) io.Reader { |
| 307 | return io.LimitReader(rand.New(rand.NewSource(seed)), size) |
no outgoing calls
no test coverage detected