Skip to content

Commit

Permalink
Merge pull request #307 from sorenstoutner/typos
Browse files Browse the repository at this point in the history
Fix typos.
  • Loading branch information
SChernykh authored Nov 12, 2024
2 parents 102f8ac + 3dd670e commit 3d47fcd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion doc/specs.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

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*

Expand Down
2 changes: 1 addition & 1 deletion src/aes_hash.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ void hashAes1Rx4(const void *input, size_t inputSize, void *hash) {
rx_vec_i128 state0, state1, state2, state3;
rx_vec_i128 in0, in1, in2, in3;

//intial state
//initial state
state0 = rx_set_int_vec_i128(AES_HASH_1R_STATE0);
state1 = rx_set_int_vec_i128(AES_HASH_1R_STATE1);
state2 = rx_set_int_vec_i128(AES_HASH_1R_STATE2);
Expand Down
2 changes: 1 addition & 1 deletion src/randomx.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 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.
*/
RANDOMX_EXPORT void randomx_init_dataset(randomx_dataset *dataset, randomx_cache *cache, unsigned long startItem, unsigned long itemCount);
Expand Down

0 comments on commit 3d47fcd

Please sign in to comment.