29 time_t timeStamp = time( NULL );
35 &msgData, CRYPT_IATTRIBUTE_ENTROPY );
42 int quality = 100,
fd, count, total;
49 if( (
fd = open(
"/dev/random$", O_RDONLY | O_BINARY) ) == -1 && \
50 (
fd = open(
"/dev/random", O_RDONLY | O_BINARY) ) == -1 )
52 for( total = 0; total <
sizeof(
buffer ); )
54 count = read(
fd, buffer + total,
sizeof( buffer ) - total );
62 &msgData, CRYPT_IATTRIBUTE_ENTROPY );
63 zeroise( buffer,
sizeof( buffer ) );
65 &quality, CRYPT_IATTRIBUTE_ENTROPY_QUALITY );