2020-06-09 12:43:16 +02:00
|
|
|
module strings
|
|
|
|
|
2020-12-21 21:00:32 +01:00
|
|
|
// import rand
|
2020-06-09 12:43:16 +02: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)
|
|
|
|
}
|
|
|
|
*/
|