Skip to content

Commit 3dd670e

Browse files
author
Soren Stoutner
committed
Fix typos.
1 parent 102f8ac commit 3dd670e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

doc/specs.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -882,7 +882,7 @@ The Dataset is a read-only memory structure that is used during program executio
882882

883883
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.
884884

885-
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.
885+
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.
886886

887887
*Figure 7.1 - Dataset construction*
888888

src/aes_hash.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ void hashAes1Rx4(const void *input, size_t inputSize, void *hash) {
6666
rx_vec_i128 state0, state1, state2, state3;
6767
rx_vec_i128 in0, in1, in2, in3;
6868

69-
//intial state
69+
//initial state
7070
state0 = rx_set_int_vec_i128(AES_HASH_1R_STATE0);
7171
state1 = rx_set_int_vec_i128(AES_HASH_1R_STATE1);
7272
state2 = rx_set_int_vec_i128(AES_HASH_1R_STATE2);

src/randomx.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ RANDOMX_EXPORT unsigned long randomx_dataset_item_count(void);
152152
*
153153
* @param dataset is a pointer to a previously allocated randomx_dataset structure. Must not be NULL.
154154
* @param cache is a pointer to a previously allocated and initialized randomx_cache structure. Must not be NULL.
155-
* @param startItem is the item number where intialization should start.
155+
* @param startItem is the item number where initialization should start.
156156
* @param itemCount is the number of items that should be initialized.
157157
*/
158158
RANDOMX_EXPORT void randomx_init_dataset(randomx_dataset *dataset, randomx_cache *cache, unsigned long startItem, unsigned long itemCount);

0 commit comments

Comments
 (0)