You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By design, all versions of crypto/rand minimize differences, and use the same or similar
patterns wherever possible. Therefore, if it's wrong in Unix, it's probably wrong in
Windows too. And it is.
Activity
rsc commentedon Jul 13, 2010
Comment 1:
Owner changed to r...@golang.org.
Status changed to Started.
peterGo commentedon Jul 13, 2010
Comment 2:
bradfitz commentedon Jul 13, 2010
Comment 3:
$ hg diff pkg/crypto/rand/rand_windows.go diff -r 4f91458c5765 src/pkg/crypto/rand/rand_windows.go --- a/src/pkg/crypto/rand/rand_windows.go Tue Jul 13 10:47:52 2010 +1000 +++ b/src/pkg/crypto/rand/rand_windows.go Tue Jul 13 11:09:52 2010 -0700 @@ -30,6 +30,7 @@ const flags = syscall.CRYPT_VERIFYCONTEXT | syscall.CRYPT_SILENT ok, errno := syscall.CryptAcquireContext(&r.prov, nil, nil, provType, flags) if !ok { + r.mu.Unlock() return 0, os.NewSyscallError("CryptAcquireContext", errno) } }peterGo commentedon Jul 13, 2010
Comment 4:
bradfitz commentedon Jul 13, 2010
Comment 5:
robpike commentedon Jul 14, 2010
Comment 6:
Status changed to Fixed.