Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2)

Delta Between Two Patch Sets: src/pkg/crypto/rand/rand_linux.go

Issue 160200044: [dev.power64] code review 160200044: build: merge default into dev.power64 (Closed)
Left Patch Set: diff -r be0c14f62257b42485019e9e1db23cf40d2e249f https://code.google.com/p/go Created 10 years, 4 months ago
Right Patch Set: diff -r be0c14f62257b42485019e9e1db23cf40d2e249f https://code.google.com/p/go Created 10 years, 4 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « src/pkg/crypto/md5/md5block_arm.s ('k') | src/pkg/crypto/rand/rand_unix.go » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(Both sides are equal)
1 // Copyright 2014 The Go Authors. All rights reserved. 1 // Copyright 2014 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style 2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file. 3 // license that can be found in the LICENSE file.
4 4
5 package rand 5 package rand
6 6
7 import ( 7 import (
8 "internal/syscall" 8 "internal/syscall"
9 "sync" 9 "sync"
10 ) 10 )
(...skipping 19 matching lines...) Expand all
30 } 30 }
31 31
32 func getRandomLinux(p []byte) (ok bool) { 32 func getRandomLinux(p []byte) (ok bool) {
33 once.Do(pickStrategy) 33 once.Do(pickStrategy)
34 if !useSyscall { 34 if !useSyscall {
35 return false 35 return false
36 } 36 }
37 n, err := syscall.GetRandom(p, 0) 37 n, err := syscall.GetRandom(p, 0)
38 return n == len(p) && err == nil 38 return n == len(p) && err == nil
39 } 39 }
LEFTRIGHT

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b