private static void initState() throws SVNException { /* * Offset between UUID formatted times and System.currentTimeMillis() * formatted times. UUID UTC base time is October 15, 1582. * System.currentTimeMillis() base time is January 1, 1970. */ long currentTime = System.currentTimeMillis() * 10 + 0x01B21DD213814000L; Random randomGen = new Random(); randomGen.setSeed(((currentTime >> 32) ^ currentTime) & 0xffffffffL); ourUUIDStateSeqNum = randomGen.nextLong() & 0x0FFFFL; getRandomInfo(ourUUIDStateNode); }
private static void initState() throws SVNException { /* * Offset between UUID formatted times and System.currentTimeMillis() * formatted times. UUID UTC base time is October 15, 1582. * System.currentTimeMillis() base time is January 1, 1970. */ long currentTime = System.currentTimeMillis() * 10 + 0x01B21DD213814000L; Random randomGen = new Random(); randomGen.setSeed(((currentTime >> 32) ^ currentTime) & 0xffffffffL); ourUUIDStateSeqNum = randomGen.nextLong() & 0x0FFFFL; getRandomInfo(ourUUIDStateNode); }
private static void initState() throws SVNException { /* * Offset between UUID formatted times and System.currentTimeMillis() * formatted times. UUID UTC base time is October 15, 1582. * System.currentTimeMillis() base time is January 1, 1970. */ long currentTime = System.currentTimeMillis() * 10 + 0x01B21DD213814000L; Random randomGen = new Random(); randomGen.setSeed(((currentTime >> 32) ^ currentTime) & 0xffffffffL); ourUUIDStateSeqNum = randomGen.nextLong() & 0x0FFFFL; getRandomInfo(ourUUIDStateNode); }
private static void initState() throws SVNException { /* * Offset between UUID formatted times and System.currentTimeMillis() * formatted times. UUID UTC base time is October 15, 1582. * System.currentTimeMillis() base time is January 1, 1970. */ long currentTime = System.currentTimeMillis() * 10 + 0x01B21DD213814000L; Random randomGen = new Random(); randomGen.setSeed(((currentTime >> 32) ^ currentTime) & 0xffffffffL); ourUUIDStateSeqNum = randomGen.nextLong() & 0x0FFFFL; getRandomInfo(ourUUIDStateNode); }