rand: add PRNG.fill_buffer_from_set/2 (#21037)

This commit is contained in:
Delyan Angelov 2024-03-16 16:32:47 +02:00 committed by GitHub
parent 4221522c0a
commit a1c6377ab6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 143 additions and 31 deletions

View file

@ -5,6 +5,10 @@ fn init() {
default_rng = new_default()
}
fn internal_fill_buffer_from_set(mut rng PRNG, charset string, mut buf []u8) {
panic('todo')
}
fn internal_string_from_set(mut rng PRNG, charset string, len int) string {
result := ''
#