RandReader
type RandReader = RandReader
A reader that generates random bytes.
Example
nv
use std.rand.RandReader;
use std.io.Bytes;
let reader = RandReader.new();
let buf = Bytes.new(len: 10);
try! reader.read(buf);
Implementions
Methods
new
pub fn new(): RandReader
[src]
pub fn new(): RandReader {
return _RandReader.new() as RandReader;
}
new
pub fn new(): RandReader
[src]
pub fn new(): RandReader {
return _RandReader.new() as RandReader;
}