v / vlib / crypto / rand / rand_default.c.v
9 lines · 8 sloc · 360 bytes · 763f94388b1ceff59c3e68ebda2c9f57197f32a4
Raw
1// Copyright (c) 2019-2024 Alexander Medvednikov. All rights reserved.
2// Use of this source code is governed by an MIT license
3// that can be found in the LICENSE file.
4module rand
5
6// read returns an array of `bytes_needed` random bytes read from the OS.
7pub fn read(bytes_needed int) ![]u8 {
8 return error('rand.read is not implemented on this platform')
9}
10