/** * Clear the leading bytes of specified file. * * @param path pathname where random data are stored * @param len amount of leading bytes to clear * * @return the amount of bytes cleared if OK, a short count or -1 on error, * with errno set. */ ssize_t frand_clear(const char *path, size_t len) { return frand_save(path, random_strong_bytes, len); }
/** * Clear the leading bytes of specified file. * * @param path pathname where random data are stored * @param len amount of leading bytes to clear * * @return the amount of bytes cleared if OK, a short count or -1 on error, * with errno set. */ ssize_t frand_clear(const char *path, size_t len) { return frand_save(path, frand_zeroes, len); }