summaryrefslogtreecommitdiff
path: root/third_party
diff options
context:
space:
mode:
Diffstat (limited to 'third_party')
-rw-r--r--third_party/srtp/crypto/rng/rand_source.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/third_party/srtp/crypto/rng/rand_source.c b/third_party/srtp/crypto/rng/rand_source.c
index 9bd7fc21..9867c295 100644
--- a/third_party/srtp/crypto/rng/rand_source.c
+++ b/third_party/srtp/crypto/rng/rand_source.c
@@ -97,8 +97,11 @@ rand_source_init(void) {
#elif (_MSC_VER >= 1400)
dev_random_fdes = RAND_SOURCE_READY;
#else
- /* no random source available; let the user know */
- fprintf(stderr, "WARNING: no real random source present!\n");
+ /* no random source available; let the user know */
+ if (stderr)
+ fprintf(stderr, "WARNING: no real random source present!\n");
+ else
+ printf("WARNING: no real random source present!\n");
dev_random_fdes = RAND_SOURCE_READY;
#endif
return err_status_ok;