summaryrefslogtreecommitdiff
path: root/random/random-csprng.c
diff options
context:
space:
mode:
authorJustus Winter <justus@g10code.com>2015-11-16 12:18:47 +0100
committerJustus Winter <justus@g10code.com>2015-11-17 11:17:52 +0100
commit0e395944b70c7a92a6437f6bcc14f287c19ce9de (patch)
treefb78af690002b53f017cf1ea122e9f096e828f54 /random/random-csprng.c
parent89fa74d6b3e58cd4fcd6e0939a35e46cbaca2ea0 (diff)
downloadlibgcrypt-0e395944b70c7a92a6437f6bcc14f287c19ce9de.tar.gz
Fix typos found using codespell
* cipher/cipher-ocb.c: Fix typos. * cipher/des.c: Likewise. * cipher/dsa-common.c: Likewise. * cipher/ecc.c: Likewise. * cipher/pubkey.c: Likewise. * cipher/rsa-common.c: Likewise. * cipher/scrypt.c: Likewise. * random/random-csprng.c: Likewise. * random/random-fips.c: Likewise. * random/rndw32.c: Likewise. * src/cipher-proto.h: Likewise. * src/context.c: Likewise. * src/fips.c: Likewise. * src/gcrypt.h.in: Likewise. * src/global.c: Likewise. * src/sexp.c: Likewise. * tests/mpitests.c: Likewise. * tests/t-lock.c: Likewise. Signed-off-by: Justus Winter <justus@g10code.com>
Diffstat (limited to 'random/random-csprng.c')
-rw-r--r--random/random-csprng.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/random/random-csprng.c b/random/random-csprng.c
index da50fda7..dbebe98f 100644
--- a/random/random-csprng.c
+++ b/random/random-csprng.c
@@ -1234,7 +1234,7 @@ do_fast_random_poll (void)
# endif /*!RUSAGE_SELF*/
#endif /*HAVE_GETRUSAGE*/
- /* Time and clock are availabe on all systems - so we better do it
+ /* Time and clock are available on all systems - so we better do it
just in case one of the above functions didn't work. */
{
time_t x = time(NULL);
@@ -1275,12 +1275,12 @@ _gcry_rngcsprng_fast_poll (void)
static void
-read_random_source (enum random_origins orgin, size_t length, int level )
+read_random_source (enum random_origins origin, size_t length, int level)
{
if ( !slow_gather_fnc )
log_fatal ("Slow entropy gathering module not yet initialized\n");
- if ( slow_gather_fnc (add_randomness, orgin, length, level) < 0)
+ if (slow_gather_fnc (add_randomness, origin, length, level) < 0)
log_fatal ("No way to gather entropy for the RNG\n");
}