mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-09-24 06:13:43 +08:00
Update GmSSL-Go
This commit is contained in:
@@ -20,6 +20,5 @@ func GenerateRandom(length int) ([]byte, error) {
|
||||
if C.RAND_bytes((*C.uchar)(&outbuf[0]), C.int(length)) <= 0 {
|
||||
return nil, GetErrors()
|
||||
}
|
||||
|
||||
return outbuf[:length], nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user