mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
lower/snake case consts & enums
This commit is contained in:
committed by
Alexander Medvednikov
parent
fe17dd9a7e
commit
580abe0de4
@@ -18,7 +18,7 @@ pub fn read(bytes_needed int) ?[]byte {
|
||||
// use BCRYPT_USE_SYSTEM_PREFERRED_RNG because we passed null as algo
|
||||
status := C.BCryptGenRandom(0, buffer, bytes_needed, BCRYPT_USE_SYSTEM_PREFERRED_RNG)
|
||||
if status != STATUS_SUCCESS {
|
||||
return ReadError
|
||||
return read_error
|
||||
}
|
||||
return c_array_to_bytes_tmp(bytes_needed, buffer)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user