blob: eedc1feaf4eaa712e0b725c77bb9a732c83bb38b [file] [log] [blame]
/*
* misc.h All that didn't fit elsewhere.
*
* Copyright (C) 1995 Olaf Kirch <okir@monad.swb.de>
*/
#ifndef MISC_H
#define MISC_H
/*
* Generate random key, returning the length of the result. Currently,
* weakrandomkey generates a maximum of 20 bytes are generated, but this
* may change with future implementations.
*/
int randomkey(unsigned char *keyout, int len);
int weakrandomkey(unsigned char *keyout, int len);
extern int is_mountpoint(char *path);
/* size of the file pointer buffers for rpc procfs files */
#define RPC_CHAN_BUF_SIZE 32768
#endif /* MISC_H */