1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

rand: move dist functions to top module and PRNG interface; minor cleanup (#14481)

This commit is contained in:
Subhomoy Haldar
2022-05-22 15:51:52 +05:30
committed by GitHub
parent 64a686f41f
commit 3647fb4def
13 changed files with 290 additions and 134 deletions

10
vlib/rand/buffer/buffer.v Normal file
View File

@ -0,0 +1,10 @@
// Copyright (c) 2019-2022 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 buffer
pub struct PRNGBuffer {
mut:
bytes_left int
buffer u64
}