diff options
Diffstat (limited to 'src/runtime/os1_linux.go')
| -rw-r--r-- | src/runtime/os1_linux.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/os1_linux.go b/src/runtime/os1_linux.go index 44e7698bcf..4214fa7cf7 100644 --- a/src/runtime/os1_linux.go +++ b/src/runtime/os1_linux.go @@ -176,7 +176,7 @@ func getRandomData(r []byte) { } fd := open(&urandom_dev[0], 0 /* O_RDONLY */, 0) n := read(fd, unsafe.Pointer(&r[0]), int32(len(r))) - close(fd) + closefd(fd) extendRandom(r, int(n)) } |
