mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
crypto.rand: add a shim for fn read(bytes_needed int) ?[]byte
in rand_default.c.v, so that it shows with v doc
This commit is contained in:
parent
506561c792
commit
5777706a58
9
vlib/crypto/rand/rand_default.c.v
Normal file
9
vlib/crypto/rand/rand_default.c.v
Normal file
@ -0,0 +1,9 @@
|
||||
// Copyright (c) 2019-2021 Alexander Medvednikov. All rights reserved.
|
||||
// Use of this source code is governed by an MIT license
|
||||
// that can be found in the LICENSE file.
|
||||
module rand
|
||||
|
||||
// read returns an array of `bytes_needed` random bytes read from the OS.
|
||||
pub fn read(bytes_needed int) ?[]byte {
|
||||
return error('crypto.read is not implemented on this platform')
|
||||
}
|
Loading…
Reference in New Issue
Block a user