aboutsummaryrefslogtreecommitdiff
path: root/src/or/shared_random.h
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@ev0ke.net>2016-05-09 16:51:32 -0400
committerDavid Goulet <dgoulet@torproject.org>2016-07-01 14:01:41 -0400
commitc0cec2ffd3d5f965413f56e93f89fabf81a2c3a0 (patch)
tree06e8a76596186bb9f2f63da59f06f3173a2f3a52 /src/or/shared_random.h
parentb12d4852efaf6a6a5184abddacb777d30bf9850f (diff)
downloadtor-c0cec2ffd3d5f965413f56e93f89fabf81a2c3a0.tar.gz
tor-c0cec2ffd3d5f965413f56e93f89fabf81a2c3a0.zip
prop250: change time_t to uint64_t
Signed-off-by: David Goulet <dgoulet@ev0ke.net>
Diffstat (limited to 'src/or/shared_random.h')
-rw-r--r--src/or/shared_random.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/shared_random.h b/src/or/shared_random.h
index d52258c6e2..15eed8a25c 100644
--- a/src/or/shared_random.h
+++ b/src/or/shared_random.h
@@ -77,7 +77,7 @@ typedef struct sr_commit_t {
/* Commitment information */
/* Timestamp of reveal. Correspond to TIMESTAMP. */
- time_t reveal_ts;
+ uint64_t reveal_ts;
/* H(REVEAL) as found in COMMIT message. */
char hashed_reveal[DIGEST256_LEN];
/* Base64 encoded COMMIT. We use this to put it in our vote. */
@@ -90,7 +90,7 @@ typedef struct sr_commit_t {
* avoiding possible information leaks of our PRNG. */
uint8_t random_number[SR_RANDOM_NUMBER_LEN];
/* Timestamp of commit. Correspond to TIMESTAMP. */
- time_t commit_ts;
+ uint64_t commit_ts;
/* This is the whole reveal message. We use it during verification */
char encoded_reveal[SR_REVEAL_BASE64_LEN + 1];
} sr_commit_t;