- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for nextRandom (0.14 sec)
-
src/math/big/prime.go
k := nm1.trailingZeroBits() q := nat(nil).shr(nm1, k) nm3 := nat(nil).sub(nm1, natTwo) rand := rand.New(rand.NewSource(int64(n[0]))) var x, y, quotient nat nm3Len := nm3.bitLen() NextRandom: for i := 0; i < reps; i++ { if i == reps-1 && force2 { x = x.set(natTwo) } else { x = x.random(rand, nm3, nm3Len) x = x.add(x, natTwo) } y = y.expNN(x, q, n, false)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 02 14:43:52 UTC 2022 - 10.4K 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)