mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
crypto: add missing documentation to all pub functions (#8251)
This commit is contained in:
@ -10,6 +10,7 @@ module rand
|
||||
|
||||
fn C.SecRandomCopyBytes() int
|
||||
|
||||
// read returns an array of `bytes_needed` random bytes read from the OS.
|
||||
pub fn read(bytes_needed int) ?[]byte {
|
||||
mut buffer := malloc(bytes_needed)
|
||||
status := C.SecRandomCopyBytes(0, bytes_needed, buffer)
|
||||
|
Reference in New Issue
Block a user