Search
j0ke.net Open Build Service
>
Projects
>
ha
>
csync2
> csync2-urandom.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File csync2-urandom.patch of Package csync2
--- csync2.c.orig 2009-10-01 18:07:48.000000000 +0200 +++ csync2.c 2009-10-01 18:07:59.000000000 +0200 @@ -190,7 +190,7 @@ int create_keyfile(const char *filename) { int fd = open(filename, O_WRONLY|O_CREAT|O_EXCL, 0600); - int rand = open("/dev/random", O_RDONLY); + int rand = open("/dev/urandom", O_RDONLY); char matrix[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789._"; unsigned char n; int i; @@ -201,7 +201,7 @@ return 1; } if ( rand == -1 ) { - fprintf(stderr, "Can't open /dev/random: %s\n", strerror(errno)); + fprintf(stderr, "Can't open /dev/urandom: %s\n", strerror(errno)); return 1; } for (i=0; i<64; i++) {