Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Tor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
The Tor Project
Core
Tor
Commits
4c6fd710
Commit
4c6fd710
authored
9 years ago
by
Nick Mathewson
Browse files
Options
Downloads
Plain Diff
Merge branch 'bug16980'
parents
81e3deeb
280672bd
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
changes/bug16980
+6
-0
6 additions, 0 deletions
changes/bug16980
src/common/crypto.c
+2
-1
2 additions, 1 deletion
src/common/crypto.c
with
8 additions
and
1 deletion
changes/bug16980
0 → 100644
+
6
−
0
View file @
4c6fd710
o Minor bugfixes:
- Fix the behavior of crypto_time_t when told to consider times
before 1970. (These times were possible when running in a
simulated network environment where time()'s output starts at
zero.) Fixes bug 16980; bugfix on 0.2.7.1-alpha.
This diff is collapsed.
Click to expand it.
src/common/crypto.c
+
2
−
1
View file @
4c6fd710
...
...
@@ -2440,7 +2440,8 @@ crypto_rand_uint64_range(uint64_t min, uint64_t max)
time_t
crypto_rand_time_range
(
time_t
min
,
time_t
max
)
{
return
(
time_t
)
crypto_rand_uint64_range
(
min
,
max
);
tor_assert
(
min
<
max
);
return
min
+
(
time_t
)
crypto_rand_uint64
(
max
-
min
);
}
/** Return a pseudorandom 64-bit integer, chosen uniformly from the values
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment