- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for nextRandom (0.14 sec)
-
src/os/tempfile.go
// chance the file doesn't exist yet - keeps the number of tries in // TempFile to a minimum. // //go:linkname runtime_rand runtime.rand func runtime_rand() uint64 func nextRandom() string { return itoa.Uitoa(uint(uint32(runtime_rand()))) } // CreateTemp creates a new temporary file in the directory dir, // opens the file for reading and writing, and returns the resulting file.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 12 18:04:39 UTC 2024 - 3.9K bytes - Viewed (0) -
src/cmd/gofmt/gofmt.go
fdSem <- true defer func() { <-fdSem }() nextRandom := func() string { return strconv.Itoa(rand.Int()) } dir, base := filepath.Split(filename) var ( bakname string f *os.File ) for { bakname = filepath.Join(dir, base+"."+nextRandom()) var err error f, err = os.OpenFile(bakname, os.O_RDWR|os.O_CREATE|os.O_EXCL, perm)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 14 19:41:17 UTC 2024 - 15.1K bytes - Viewed (0)