]> Cypherpunks.ru repositories - gostls13.git/commit
syscall: remove RtlGenRandom and move it into internal/syscall
authorJason A. Donenfeld <Jason@zx2c4.com>
Thu, 14 Jan 2021 23:04:10 +0000 (00:04 +0100)
committerJason A. Donenfeld <Jason@zx2c4.com>
Fri, 15 Jan 2021 18:42:27 +0000 (18:42 +0000)
commitbb5075a5259baeaa75f09db64c3860c5876a00fd
tree0f31dc5cf749817f6796a7ea70886cd040342796
parent1deae0b59747ea87d0ef02b6dfdfbbdf5e7bcee8
syscall: remove RtlGenRandom and move it into internal/syscall

There's on need to expose this to the frozen syscall package, and it
also doesn't need to be unsafe. So we move it into internal/syscall and
have the generator make a safer function signature.

Fixes #43704.

Change-Id: Iccae69dc273a0aa97ee6846eb537f1dc1412f2de
Reviewed-on: https://go-review.googlesource.com/c/go/+/283992
Run-TryBot: Jason A. Donenfeld <Jason@zx2c4.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
Trust: Jason A. Donenfeld <Jason@zx2c4.com>
api/go1.16.txt
src/crypto/rand/rand_windows.go
src/internal/syscall/windows/syscall_windows.go
src/internal/syscall/windows/zsyscall_windows.go
src/syscall/syscall_windows.go
src/syscall/zsyscall_windows.go