2020-06-09 13:43:16 +03:00
|
|
|
module strings
|
|
|
|
|
2020-12-21 23:00:32 +03:00
|
|
|
// import rand
|
2020-06-09 13:43:16 +03:00
|
|
|
// random returns a random string with `n` characters
|
|
|
|
/*
|
|
|
|
pub fn random(n int) string {
|
|
|
|
buf := vmalloc(n)
|
|
|
|
for i in 0..n {
|
|
|
|
buf[i] = rand.next()
|
|
|
|
}
|
|
|
|
return tos(buf)
|
|
|
|
}
|
|
|
|
*/
|