<html lang='en'>
<head>
<meta content='text/html; charset=utf-8' http-equiv='Content-Type'>
<title>
GitLab
</title>
</meta>
</head>
<style>
img {
max-width: 100%;
height: auto;
}
p.details {
font-style:italic;
color:#777
}
.footer p {
font-size:small;
color:#777
}
pre.commit-message {
white-space: pre-wrap;
}
.file-stats a {
text-decoration: none;
}
.file-stats .new-file {
color: #090;
}
.file-stats .deleted-file {
color: #B00;
}
</style>
<body>
<div class='content'>
<h3>Hal Murray pushed to branch master at <a href="https://gitlab.com/NTPsec/ntpsec">NTPsec / ntpsec</a></h3>
<h4>
Commits:
</h4>
<ul>
<li>
<strong><a href="https://gitlab.com/NTPsec/ntpsec/commit/d25c962e7db050cf9b430bd2d7bbf92d350c7a9b">d25c962e</a></strong>
<div>
<span>by Hal Murray</span>
<i>at 2015-12-08T00:24:40Z</i>
</div>
<pre class='commit-message'>rand => intercept_ntp_random</pre>
</li>
</ul>
<h4>1 changed file:</h4>
<ul>
<li class='file-stats'>
<a href='#diff-0'>
ntpd/ntp_control.c
</a>
</li>
</ul>
<h4>Changes:</h4>
<li id='diff-0'>
<a href='https://gitlab.com/NTPsec/ntpsec/commit/d25c962e7db050cf9b430bd2d7bbf92d350c7a9b#diff-0'>
<strong>
ntpd/ntp_control.c
</strong>
</a>
<hr>
<pre class="highlight"><code><span style="color: #000000;background-color: #ffdddd">--- a/ntpd/ntp_control.c
</span><span style="color: #000000;background-color: #ddffdd">+++ b/ntpd/ntp_control.c
</span><span style="color: #aaaaaa">@@ -3448,7 +3448,7 @@ send_random_tag_value(
</span> int noise;
char buf[32];
<span style="color: #000000;background-color: #ffdddd">- noise = rand() ^ (rand() << 16);
</span><span style="color: #000000;background-color: #ddffdd">+ noise = intercept_ntp_random("send_random_tag");
</span> buf[0] = 'a' + noise % 26;
noise >>= 5;
buf[1] = 'a' + noise % 26;
<span style="color: #aaaaaa">@@ -3488,7 +3488,7 @@ send_mru_entry(
</span>
remaining = COUNTOF(sent);
ZERO(sent);
<span style="color: #000000;background-color: #ffdddd">- noise = (uint32_t)(rand() ^ (rand() << 16));
</span><span style="color: #000000;background-color: #ddffdd">+ noise = intercept_ntp_random("send_mru_entry");
</span> while (remaining > 0) {
which = (noise & 7) % COUNTOF(sent);
noise >>= 3;
<span style="color: #aaaaaa">@@ -3923,7 +3923,7 @@ send_ifstats_entry(
</span> noisebits = 0;
while (remaining > 0) {
if (noisebits < 4) {
<span style="color: #000000;background-color: #ffdddd">- noise = rand() ^ (rand() << 16);
</span><span style="color: #000000;background-color: #ddffdd">+ noise = intercept_ntp_random("send_ifstats_entry");
</span> noisebits = 31;
}
which = (noise & 0xf) % COUNTOF(sent);
<span style="color: #aaaaaa">@@ -4102,7 +4102,7 @@ send_restrict_entry(
</span> noisebits = 0;
while (remaining > 0) {
if (noisebits < 2) {
<span style="color: #000000;background-color: #ffdddd">- noise = rand() ^ (rand() << 16);
</span><span style="color: #000000;background-color: #ddffdd">+ noise = intercept_ntp_random("send_restrict_entry");
</span> noisebits = 31;
}
which = (noise & 0x3) % COUNTOF(sent);
</code></pre>
<br>
</li>
</div>
<div class='footer' style='margin-top: 10px;'>
<p>
—
<br>
<a href="https://gitlab.com/NTPsec/ntpsec/commit/d25c962e7db050cf9b430bd2d7bbf92d350c7a9b">View it on GitLab</a>.
<br>
You're receiving this email because of your account on gitlab.com.
If you'd like to receive fewer emails, you can adjust your notification settings.
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","action":{"@type":"ViewAction","name":"View Commit","url":"https://gitlab.com/NTPsec/ntpsec/commit/d25c962e7db050cf9b430bd2d7bbf92d350c7a9b"}}</script>
</p>
</div>
</body>
</html>