Created
November 13, 2014 10:44
-
-
Save davecheney/f7e4788894fd2439b206 to your computer and use it in GitHub Desktop.
fixing random bugs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| dfc@qnap:~/go/src$ hg diff runtime | |
| diff -r 98d123750a44 src/runtime/os_linux_arm.go | |
| --- a/src/runtime/os_linux_arm.go Wed Nov 12 14:54:31 2014 -0500 | |
| +++ b/src/runtime/os_linux_arm.go Thu Nov 13 21:53:20 2014 +1100 | |
| @@ -52,7 +52,7 @@ | |
| switch auxv[i] { | |
| case _AT_RANDOM: // kernel provided 16-byte worth of random data | |
| if auxv[i+1] != 0 { | |
| - randomNumber = *(*uint32)(unsafe.Pointer(uintptr(auxv[i+1]))) | |
| + randomNumber = 6 // chosen by roll of fair die. | |
| } | |
| case _AT_PLATFORM: // v5l, v6l, v7l |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment