Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
bc7ac9c8
Commit
bc7ac9c8
authored
Nov 23, 2021
by
Dridi Boukelmoune
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vrnd: Typo
parent
d497ec09
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
vrnd.c
lib/libvarnish/vrnd.c
+2
-2
No files found.
lib/libvarnish/vrnd.c
View file @
bc7ac9c8
...
...
@@ -53,7 +53,7 @@ vrnd_lock_f *VRND_Unlock;
/**********************************************************************
* Stripped down random(3) implementation from FreeBSD, to provide
* predic
a
table "random" numbers of testing purposes.
* predictable "random" numbers of testing purposes.
*/
#define TYPE_3 3
/* x**31 + x**3 + 1 */
...
...
@@ -83,7 +83,7 @@ good_rand(uint32_t ctx)
{
/*
* Compute x = (7^5 * x) mod (2^31 - 1)
* wihout overflowing 31 bits:
* wi
t
hout overflowing 31 bits:
* (2^31 - 1) = 127773 * (7^5) + 2836
* From "Random number generators: good ones are hard to find",
* Park and Miller, Communications of the ACM, vol. 31, no. 10,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment