*** empty log message ***

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@330 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Unknown User d91-jda
1996-03-24 06:14:28 +00:00
parent 4b77e8a228
commit 6e774b61f7

View File

@@ -48,7 +48,7 @@ des_rand_data(unsigned char *data, int size)
{ {
struct itimerval tv, otv; struct itimerval tv, otv;
struct sigaction sa, osa; struct sigaction sa, osa;
int i; int i, j;
/* /*
* If there is a /dev/random it's use is preferred. * If there is a /dev/random it's use is preferred.
@@ -77,14 +77,12 @@ des_rand_data(unsigned char *data, int size)
tv.it_interval = tv.it_value; tv.it_interval = tv.it_value;
setitimer(ITIMER_REAL, &tv, &otv); setitimer(ITIMER_REAL, &tv, &otv);
for(i = 0; i < 4; i++) for(i = 0; i < 4; i++) {
{ for (igdata = 0; igdata < size;) /* igdata++ in sigALRM */
int j; counter++;
for (igdata = 0; igdata < size;) /* igdata++ in sigALRM */ for (j = 0; j < size; j++) /* Only use 2 bits each lap */
counter++; gdata[j] = (gdata[j]>>2) | (gdata[j]<<6);
for (j = 0; j < size; j++) /* Only use 2 bits each lap */ }
gdata[j] = (gdata[j]>>2) | (gdata[j]<<6);
}
setitimer(ITIMER_REAL, &otv, 0); setitimer(ITIMER_REAL, &otv, 0);
sigaction(SIGALRM, &osa, 0); sigaction(SIGALRM, &osa, 0);
} }