comparison random.c @ 857:c19acba28590

use oldstyle comments
author Matt Johnston <matt@ucc.asn.au>
date Thu, 14 Nov 2013 22:03:30 +0800
parents 04ede40a529a
children
comparison
equal deleted inserted replaced
856:f56c41030c15 857:c19acba28590
223 #endif 223 #endif
224 224
225 pid = getpid(); 225 pid = getpid();
226 sha1_process(&hs, (void*)&pid, sizeof(pid)); 226 sha1_process(&hs, (void*)&pid, sizeof(pid));
227 227
228 // gettimeofday() doesn't completely fill out struct timeval on 228 /* gettimeofday() doesn't completely fill out struct timeval on
229 // OS X (10.8.3), avoid valgrind warnings by clearing it first 229 OS X (10.8.3), avoid valgrind warnings by clearing it first */
230 memset(&tv, 0x0, sizeof(tv)); 230 memset(&tv, 0x0, sizeof(tv));
231 gettimeofday(&tv, NULL); 231 gettimeofday(&tv, NULL);
232 sha1_process(&hs, (void*)&tv, sizeof(tv)); 232 sha1_process(&hs, (void*)&tv, sizeof(tv));
233 233
234 clockval = clock(); 234 clockval = clock();