Skip to content

Commit

Permalink
Fix libMT build for linux
Browse files Browse the repository at this point in the history
  • Loading branch information
Viral B. Shah committed Jul 3, 2011
1 parent d181c0c commit 9c06dda
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion external/random/jl_random.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ void randomize()
uint64_t a;

gettimeofday(&now, NULL);
a = (((u_int64_t)now.tv_sec)<<32) + (u_int64_t)now.tv_usec;
a = (((uint64_t)now.tv_sec)<<32) + (uint64_t)now.tv_usec;

randomseed64(a);
}
4 changes: 4 additions & 0 deletions external/random/jl_random.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@
#include <math.h>
#include <sys/time.h>
#include <stdint.h>
#ifdef __APPLE__
#include "ieee754.h"
#else
#include <ieee754.h>
#endif

double rand_double();
float rand_float();
Expand Down

0 comments on commit 9c06dda

Please sign in to comment.