From d4bb32da8243ba7d245b1fbacce7995b9bfc7a35 Mon Sep 17 00:00:00 2001 From: jrandom Date: Tue, 11 May 2004 01:45:18 +0000 Subject: [PATCH] fix per http://twiki.ntp.org/bin/view/Support/JavaSntpClientDev (thanks duck!) this may have caused some clock skew problems on the deployed 0.3.1.1, so we'll get this deployed asap --- apps/time/java/src/net/i2p/time/NtpMessage.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/time/java/src/net/i2p/time/NtpMessage.java b/apps/time/java/src/net/i2p/time/NtpMessage.java index 3e693449ab..c7076a9565 100644 --- a/apps/time/java/src/net/i2p/time/NtpMessage.java +++ b/apps/time/java/src/net/i2p/time/NtpMessage.java @@ -384,7 +384,7 @@ public class NtpMessage { // low order bits of the timestamp with a random, unbiased // bitstring, both to avoid systematic roundoff errors and as // a means of loop detection and replay detection. - array[7] = (byte) (Math.random()*255.0); + array[7+pointer] = (byte) (Math.random()*255.0); }