fb-file carefulio fb-mem fb-temp tempfile fb-mmap fb-limfd fb-buffer fb-grow fb-pool fb-atomic fb-param fb-socket \
char-cat char-upper char-lower unicode stkstring \
wildmatch regex \
- prime primetable random timer randomkey \
+ prime primetable random timer \
bit-ffs bit-fls \
url \
mainloop main-block main-rec \
void setproctitle(const char *msg, ...) FORMAT_CHECK(printf,1,2);
char *getproctitle(void);
-/* randomkey.c */
-
-void randomkey(byte *buf, uns size);
-
/* exitstatus.c */
#define EXIT_STATUS_MSG_SIZE 32
+++ /dev/null
-/*
- * UCW Library -- Cryptographically Safe Random Key Generator
- *
- * (c) 2002 Martin Mares <mj@ucw.cz>
- *
- * This software may be freely distributed and used according to the terms
- * of the GNU Lesser General Public License.
- */
-
-#include "ucw/lib.h"
-
-#include <fcntl.h>
-#include <unistd.h>
-
-void
-randomkey(byte *buf, uns size)
-{
- int fd;
-
- if ((fd = open("/dev/urandom", O_RDONLY, 0)) < 0)
- die("Unable to open /dev/urandom: %m");
- if (read(fd, buf, size) != (int) size)
- die("Error reading /dev/urandom: %m");
- close(fd);
-}