summaryrefslogtreecommitdiff
path: root/lib/gc-libgcrypt.c
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2006-03-07 13:17:10 +0000
committerSimon Josefsson <simon@josefsson.org>2006-03-07 13:17:10 +0000
commit216c04af3d0ae20181e266391d1bdc09c120404c (patch)
tree4c97ec80053145fa19004e39a7afac21ecaa6e44 /lib/gc-libgcrypt.c
parenta759ed03966f7755962a3ec624ef90ded7d6e647 (diff)
downloadgnulib-216c04af3d0ae20181e266391d1bdc09c120404c.tar.gz
Split off gc-random from gc, and only warn on missing devices.
Diffstat (limited to 'lib/gc-libgcrypt.c')
-rw-r--r--lib/gc-libgcrypt.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/gc-libgcrypt.c b/lib/gc-libgcrypt.c
index 10841e8d43..a9e6279a2a 100644
--- a/lib/gc-libgcrypt.c
+++ b/lib/gc-libgcrypt.c
@@ -1,5 +1,5 @@
/* gc-libgcrypt.c --- Crypto wrappers around Libgcrypt for GC.
- * Copyright (C) 2002, 2003, 2004, 2005 Simon Josefsson
+ * Copyright (C) 2002, 2003, 2004, 2005, 2006 Simon Josefsson
*
* This file is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published
@@ -65,6 +65,8 @@ gc_done (void)
return;
}
+#ifdef GC_USE_RANDOM
+
/* Randomness. */
Gc_rc
@@ -88,6 +90,8 @@ gc_random (char *data, size_t datalen)
return GC_OK;
}
+#endif
+
/* Memory allocation. */
void