Update README.md
This commit is contained in:
parent
d1b8ba9d07
commit
1deb79b52e
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue