Skip to content
This repository was archived by the owner on Sep 19, 2021. It is now read-only.

Commit 9994383

Browse files
authored
Merge pull request #55 from google/move-random-generator
Moved Random Uuid Generator
2 parents a4e9ce0 + 8f78971 commit 9994383

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

src/codeu/chat/server/RandomUuidGenerator.java renamed to src/codeu/chat/common/RandomUuidGenerator.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
package codeu.chat.server;
15+
package codeu.chat.common;
1616

1717
import java.util.Random;
1818

@@ -21,7 +21,7 @@
2121
// Create a new random uuid. Uuids from this generator are random
2222
// but are not guaranteed to be unique. Checking uniqueness is left
2323
// to the caller.
24-
final class RandomUuidGenerator implements Uuid.Generator {
24+
public final class RandomUuidGenerator implements Uuid.Generator {
2525

2626
private final Uuid commonRoot;
2727
private final Random random;

src/codeu/chat/server/Controller.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
import codeu.chat.common.BasicController;
2020
import codeu.chat.common.Conversation;
2121
import codeu.chat.common.Message;
22+
import codeu.chat.common.RandomUuidGenerator;
2223
import codeu.chat.common.RawController;
2324
import codeu.chat.common.User;
2425
import codeu.chat.util.Logger;

0 commit comments

Comments
 (0)