mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
use new time API
R=bradfitz, gri, r, dsymonds CC=golang-dev https://golang.org/cl/5390042
This commit is contained in:
parent
efe3d35fc5
commit
03823b881c
82 changed files with 558 additions and 494 deletions
|
|
@ -100,7 +100,7 @@ func (r *reader) Read(b []byte) (n int, err error) {
|
|||
// t = encrypt(time)
|
||||
// dst = encrypt(t^seed)
|
||||
// seed = encrypt(t^dst)
|
||||
ns := time.Nanoseconds()
|
||||
ns := time.Now().UnixNano()
|
||||
r.time[0] = byte(ns >> 56)
|
||||
r.time[1] = byte(ns >> 48)
|
||||
r.time[2] = byte(ns >> 40)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue