Skip to content

Commit

Permalink
Merge pull request #113 from yurivict/master
Browse files Browse the repository at this point in the history
FreeBSD compatibility patch.
  • Loading branch information
kimlaine authored Jan 18, 2020
2 parents 9fc376c + 4d57e56 commit 4eee698
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion native/src/seal/randomgen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ namespace seal
uint64_t random_uint64()
{
uint64_t result;
#if defined(__linux__) || (defined(__APPLE__) && defined(__MACH__))
#if defined(__linux__) || defined(__FreeBSD__) || (defined(__APPLE__) && defined(__MACH__))
random_device rd("/dev/urandom");
result = (static_cast<uint64_t>(rd()) << 32)
+ static_cast<uint64_t>(rd());
Expand Down

0 comments on commit 4eee698

Please sign in to comment.