comparison random.c @ 737:7deb6fda1319

fix tabs
author Matt Johnston <matt@ucc.asn.au>
date Tue, 02 Apr 2013 18:59:00 +0800
parents 73b6e5d8801b
children 7dcb46da72d9 5de524aec047
comparison
equal deleted inserted replaced
736:0b854ab00333 737:7deb6fda1319
155 { 155 {
156 #ifndef DROPBEAR_PRNGD_SOCKET 156 #ifndef DROPBEAR_PRNGD_SOCKET
157 /* This is opportunistic, don't worry about failure */ 157 /* This is opportunistic, don't worry about failure */
158 unsigned char buf[INIT_SEED_SIZE]; 158 unsigned char buf[INIT_SEED_SIZE];
159 FILE *f = fopen(DROPBEAR_URANDOM_DEV, "w"); 159 FILE *f = fopen(DROPBEAR_URANDOM_DEV, "w");
160 if (!f) { 160 if (!f) {
161 return; 161 return;
162 } 162 }
163 genrandom(buf, sizeof(buf)); 163 genrandom(buf, sizeof(buf));
164 fwrite(buf, sizeof(buf), 1, f); 164 fwrite(buf, sizeof(buf), 1, f);
165 fclose(f); 165 fclose(f);
166 #endif 166 #endif
167 } 167 }