Revert "Generate proper UUID strings for new tasks"

This reverts commit b6b0b233e2.
pull/1770/head
Alex Baker 2 years ago
parent ffe1ee6001
commit 67899e6fff

@ -3,8 +3,15 @@ package com.todoroo.astrid.helper;
import java.util.UUID;
public class UUIDHelper {
/** @return a newly generated uuid */
private static final long MIN_UUID = 100000000;
/** @return a pair consisting of the newly generated uuid and the corresponding proof text */
public static String newUUID() {
return UUID.randomUUID().toString();
long uuid;
do {
uuid = UUID.randomUUID().getLeastSignificantBits() & 0x7fffffffffffffffL;
} while (uuid < MIN_UUID);
return Long.toString(uuid);
}
}

Loading…
Cancel
Save