Skip to content

Commit 46a9cc9

Browse files
committed
Fix NITs in comments and CHANGES for DEVRANDOM seeded check.
Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com> (Merged from openssl#9734)
1 parent 51fe9b0 commit 46a9cc9

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

CHANGES

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
/dev/random to be producing output before seeding from /dev/urandom.
1515
The seeded state is stored for future library initialisations using
1616
a system global shared memory segment. The shared memory identifier
17-
can be configured by defining OSSL_SHM_SEEDED to the desired value.
18-
The default identifier is 114.
17+
can be configured by defining OPENSSL_RAND_SEED_DEVRANDOM_SHM_ID to
18+
the desired value. The default identifier is 114.
1919
[Paul Dale]
2020

2121
*) Revised BN_generate_prime_ex to not avoid factors 2..17863 in p-1

crypto/rand/rand_unix.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ static int wait_random_seeded(void)
367367
fd_set fds;
368368

369369
if (!seeded) {
370-
/* See if anthing has created the global seeded indication */
370+
/* See if anything has created the global seeded indication */
371371
if ((shm_id = shmget(OPENSSL_RAND_SEED_DEVRANDOM_SHM_ID, 1, 0)) == -1) {
372372
/*
373373
* Check the kernel's version and fail if it is too recent.
@@ -401,7 +401,7 @@ static int wait_random_seeded(void)
401401
close(fd);
402402
if (r == 1) {
403403
seeded = 1;
404-
/* Craete the shared memory indicator */
404+
/* Create the shared memory indicator */
405405
shm_id = shmget(OPENSSL_RAND_SEED_DEVRANDOM_SHM_ID, 1,
406406
IPC_CREAT | S_IRUSR | S_IRGRP | S_IROTH);
407407
}

0 commit comments

Comments
 (0)