summaryrefslogtreecommitdiff
path: root/random/random.c
diff options
context:
space:
mode:
Diffstat (limited to 'random/random.c')
-rw-r--r--random/random.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/random/random.c b/random/random.c
index 97018c42..ff9d6d25 100644
--- a/random/random.c
+++ b/random/random.c
@@ -320,7 +320,7 @@ _gcry_random_bytes (size_t nbytes, enum gcry_random_level level)
{
void *buffer;
- buffer = gcry_xmalloc (nbytes);
+ buffer = xmalloc (nbytes);
do_randomize (buffer, nbytes, level);
return buffer;
}
@@ -337,7 +337,7 @@ _gcry_random_bytes_secure (size_t nbytes, enum gcry_random_level level)
/* Historical note (1.3.0--1.4.1): The buffer was only allocated
in secure memory if the pool in random-csprng.c was also set to
use secure memory. */
- buffer = gcry_xmalloc_secure (nbytes);
+ buffer = xmalloc_secure (nbytes);
do_randomize (buffer, nbytes, level);
return buffer;
}