diff options
Diffstat (limited to 'cipher/random.c')
-rw-r--r-- | cipher/random.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cipher/random.c b/cipher/random.c index 76db0d017..cdbd0b700 100644 --- a/cipher/random.c +++ b/cipher/random.c @@ -568,8 +568,10 @@ fast_random_poll() } /* fall back to the generic function */ - #ifdef HAVE_GETHRTIME + #if defined(HAVE_GETHRTIME) && !defined(HAVE_BROKEN_GETHRTIME) { hrtime_t tv; + /* On some Solaris and HPUX system gethrtime raises an SIGILL, but we + * checked this with configure */ tv = gethrtime(); add_randomness( &tv, sizeof(tv), 1 ); } |