summaryrefslogtreecommitdiff
path: root/src/librandom/random_name.c
blob: 057a5db5e164acba6dbb41a5304f8d43752c76d6 (plain)
1
2
3
4
5
6
7
8
9
10
/* ISC license. */

#include <skalibs/random.h>
#include "random-internal.h"

void random_name (char *s, size_t n)
{
  random_string(s, n) ;
  while (n--) s[n] = random_oklist[s[n] & 63] ;
}