what is this method?

This commit is contained in:
Ben Fry
2016-11-03 11:25:23 -04:00
parent 16db1ea0e6
commit 6652fa7b2d

View File

@@ -83,6 +83,11 @@ public class UpdateCheck {
}
/**
* Turned into a separate method so that anyone needed update.id will get
* a legit answer. Had a problem with the contribs script where the id
* wouldn't be set so a null id would be sent to the contribs server.
*/
static public long getUpdateID() {
// generate a random id in case none exists yet
Random r = new Random();