From 1deb79b52e2932947628c599300d5785fb2c0cde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A1bio=20Lima?= Date: Sun, 5 Jul 2020 00:50:30 -0300 Subject: [PATCH] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d380c9b..c650745 100644 --- a/README.md +++ b/README.md @@ -120,15 +120,15 @@ TimestampStrategy customStrategy = new CustomTimestampStrategy(); String ulid = UlidCreator.getUlidSpecCreator() .withTimestampStrategy(customStrategy) .createString(); -```java ``` +```java // with your custom random strategy that wraps any random generator RandomStrategy customStrategy = new CustomRandomStrategy(); String ulid = UlidCreator.getUlidSpecCreator() .withRandomStrategy(customStrategy) .createString(); -```java ``` +```java // with `java.util.Random` number generator Random random = new Random(); String ulid = UlidCreator.getUlidSpecCreator()