2022-01-04 10:21:08 +01:00
|
|
|
// Copyright (c) 2019-2022 Alexander Medvednikov. All rights reserved.
|
2019-07-31 03:24:12 +02:00
|
|
|
// Use of this source code is governed by an MIT license
|
|
|
|
// that can be found in the LICENSE file.
|
|
|
|
|
|
|
|
module rand
|
|
|
|
|
2021-03-30 14:27:57 +02:00
|
|
|
struct ReadError {
|
2022-02-11 14:52:33 +01:00
|
|
|
Error
|
|
|
|
}
|
|
|
|
|
|
|
|
pub fn (err ReadError) msg() string {
|
|
|
|
return 'crypto.rand.read() error reading random bytes'
|
2021-03-30 14:27:57 +02:00
|
|
|
}
|