File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments