Explorar o código

Merge pull request #307 from sorenstoutner/typos

Fix typos.
SChernykh hai 1 ano
pai
achega
3d47fcdfbf
Modificáronse 3 ficheiros con 3 adicións e 3 borrados
  1. 1 1
      doc/specs.md
  2. 1 1
      src/aes_hash.cpp
  3. 1 1
      src/randomx.h

+ 1 - 1
doc/specs.md

@@ -882,7 +882,7 @@ The Dataset is a read-only memory structure that is used during program executio
 
 
 In order to allow PoW verification with a lower amount of memory, the Dataset is constructed in two steps using an intermediate structure called the "Cache", which can be used to calculate Dataset items on the fly.
 In order to allow PoW verification with a lower amount of memory, the Dataset is constructed in two steps using an intermediate structure called the "Cache", which can be used to calculate Dataset items on the fly.
 
 
-The whole Dataset is constructed from the key value `K`, which is an input parameter of RandomX. The whole Dataset needs to be recalculated everytime the key value changes. Fig. 7.1 shows the process of Dataset construction. Note: the maximum supported length of `K` is 60 bytes. Using a longer key results in implementation-defined behavior.
+The whole Dataset is constructed from the key value `K`, which is an input parameter of RandomX. The whole Dataset needs to be recalculated every time the key value changes. Fig. 7.1 shows the process of Dataset construction. Note: the maximum supported length of `K` is 60 bytes. Using a longer key results in implementation-defined behavior.
 
 
 *Figure 7.1 - Dataset construction*
 *Figure 7.1 - Dataset construction*
 
 

+ 1 - 1
src/aes_hash.cpp

@@ -66,7 +66,7 @@ void hashAes1Rx4(const void *input, size_t inputSize, void *hash) {
 	rx_vec_i128 state0, state1, state2, state3;
 	rx_vec_i128 state0, state1, state2, state3;
 	rx_vec_i128 in0, in1, in2, in3;
 	rx_vec_i128 in0, in1, in2, in3;
 
 
-	//intial state
+	//initial state
 	state0 = rx_set_int_vec_i128(AES_HASH_1R_STATE0);
 	state0 = rx_set_int_vec_i128(AES_HASH_1R_STATE0);
 	state1 = rx_set_int_vec_i128(AES_HASH_1R_STATE1);
 	state1 = rx_set_int_vec_i128(AES_HASH_1R_STATE1);
 	state2 = rx_set_int_vec_i128(AES_HASH_1R_STATE2);
 	state2 = rx_set_int_vec_i128(AES_HASH_1R_STATE2);

+ 1 - 1
src/randomx.h

@@ -152,7 +152,7 @@ RANDOMX_EXPORT unsigned long randomx_dataset_item_count(void);
  *
  *
  * @param dataset is a pointer to a previously allocated randomx_dataset structure. Must not be NULL.
  * @param dataset is a pointer to a previously allocated randomx_dataset structure. Must not be NULL.
  * @param cache is a pointer to a previously allocated and initialized randomx_cache structure. Must not be NULL.
  * @param cache is a pointer to a previously allocated and initialized randomx_cache structure. Must not be NULL.
- * @param startItem is the item number where intialization should start.
+ * @param startItem is the item number where initialization should start.
  * @param itemCount is the number of items that should be initialized.
  * @param itemCount is the number of items that should be initialized.
 */
 */
 RANDOMX_EXPORT void randomx_init_dataset(randomx_dataset *dataset, randomx_cache *cache, unsigned long startItem, unsigned long itemCount);
 RANDOMX_EXPORT void randomx_init_dataset(randomx_dataset *dataset, randomx_cache *cache, unsigned long startItem, unsigned long itemCount);