Skip to content

Commit 8af663b

Browse files
authored
Update README.md
1 parent 0b3c132 commit 8af663b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ HLCID is an OTP application which runs on each of your nodes. You can ask it for
1212

1313
```elixir
1414
id = HLCID.generate()
15-
url_safe_id = HLCID.to_base64()
15+
url_safe_id = HLCID.to_base64(id)
1616
=> "AWy00jCrAABKaDWL0Z6heg=="
1717
```
1818

@@ -30,7 +30,7 @@ HLCs automatically account for clock drift by utilizing both physical and logica
3030
While HLCID works for our use case, you should be aware of the alternative solutions and chose one that matches your needs.
3131

3232
* Flake - Flake IDs heavily inspired HLCID. The main differences are that HLCID uses a purely random set of bytes instead of the machine name. If HLCIDs are broadcast across your cluster, they can be also be used for snapshots.
33-
* KSUID - These ids provide the same benefits of flake and HLCID, but KSUID allows for far more events in a given time window due to its use of randomness. It also has no bounds on the physical clock when means it can't become unavailable.
33+
* [KSUID](https://github.com/segmentio/ksuid) - These ids provide the same benefits of flake and HLCID, but KSUID allows for far more events in a given time window due to its use of randomness. It also has no bounds on the physical clock when means it can't become unavailable.
3434

3535
## Installation
3636

0 commit comments

Comments
 (0)