summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
d48e440)
This fixes the following warning of Xcode 4.5:
src/tool/tool.c:150:19:
Implicit conversion loses integer precision: 'long' to 'unsigned int'
struct timeval t;
gettimeofday(&t, NULL);
struct timeval t;
gettimeofday(&t, NULL);
- srand(t.tv_usec * t.tv_sec);
+ srand((unsigned)(t.tv_usec * t.tv_sec));
for (size_t i = 0; i < len; ++i) {
String[i] = chars[rand() % (sizeof(chars) - 1)];
for (size_t i = 0; i < len; ++i) {
String[i] = chars[rand() % (sizeof(chars) - 1)];