From 3dd670e3ec3d052e44cffc1c106f3f48e82ef547 Mon Sep 17 00:00:00 2001 From: Soren Stoutner Date: Mon, 11 Nov 2024 17:29:43 -0700 Subject: [PATCH] Fix typos. --- doc/specs.md | 2 +- src/aes_hash.cpp | 2 +- src/randomx.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/specs.md b/doc/specs.md index f2ab8b24..61c6fcda 100644 --- a/doc/specs.md +++ b/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. -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* diff --git a/src/aes_hash.cpp b/src/aes_hash.cpp index a3b7395b..80a182b2 100644 --- a/src/aes_hash.cpp +++ b/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 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); diff --git a/src/randomx.h b/src/randomx.h index 313bcd2e..af386566 100644 --- a/src/randomx.h +++ b/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 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);