diff --git a/README.md b/README.md index 5deaa98..a22abc3 100644 --- a/README.md +++ b/README.md @@ -225,9 +225,9 @@ Use a `UlidFactory` with `ThreadLocalRandom` inside of a `Supplier`: ```java // use a random supplier that returns an array of 10 bytes UlidFactory factory = UlidFactory.newInstance(() -> { - final byte[] bytes = new byte[Ulid.RANDOM_BYTES]; - ThreadLocalRandom.current().nextBytes(bytes); - return bytes; + final byte[] bytes = new byte[Ulid.RANDOM_BYTES]; + ThreadLocalRandom.current().nextBytes(bytes); + return bytes; }); // use the factory