2022-01-04 10:21:08 +01:00
|
|
|
// Copyright (c) 2019-2022 Alexander Medvednikov. All rights reserved.
|
2021-03-16 10:23:50 +01:00
|
|
|
// 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 {
|
2021-03-16 10:25:59 +01:00
|
|
|
return error('rand.read is not implemented on this platform')
|
2021-03-16 10:23:50 +01:00
|
|
|
}
|