Skip to content

Commit

Permalink
README.md: reword the parts about the ID length
Browse files Browse the repository at this point in the history
  • Loading branch information
lukateras committed Jan 2, 2025
1 parent 5fd34b9 commit 1408c32
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ A tiny, secure, URL-friendly unique string ID generator for C.

- **Small.** 241 bytes. Header-only. No dependencies other than libc.
- **Safe.** Uses [`getentropy(3)`][], a modern, reliable, secure randomness source.
- **Short IDs.** A Nano ID is 15 characters shorter than a UUIDv4 while packing
4 bits more entropy.
- **Short IDs.** A default Nano ID is 15 characters shorter than a UUIDv4 while
encoding 4 bits more entropy.
- **Portable.** POSIX-compliant. Available in [29 programming languages][ports].

```c
Expand Down Expand Up @@ -38,7 +38,7 @@ Nano IDs are unique string IDs where each character is an alphanumeric, a
hyphen, or an underscore. Think of them as random unpadded [Base64url][]
strings. You've already seen this ID format elsewhere: on YouTube.

A default-sized Nano ID is 21 characters long: 126 bits of entropy at 6 bits
A default Nano ID is 21 characters long, encoding 126 bits of entropy at 6 bits
per character.

[Base64url]: https://datatracker.ietf.org/doc/html/rfc4648#section-5
Expand Down
6 changes: 3 additions & 3 deletions openbsd/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ A tiny, secure, URL-friendly unique string ID generator for C.

- **Small.** 241 bytes. Header-only. No dependencies other than libc.
- **Safe.** Uses [`getentropy(2)`][], a modern, reliable, secure randomness source.
- **Short IDs.** A Nano ID is 15 characters shorter than a UUIDv4 while packing
4 bits more entropy.
- **Short IDs.** A default Nano ID is 15 characters shorter than a UUIDv4 while
encoding 4 bits more entropy.
- **Portable.** POSIX-compliant. Available in [29 programming languages][ports].

```c
Expand Down Expand Up @@ -38,7 +38,7 @@ Nano IDs are unique string IDs where each character is an alphanumeric, a
hyphen, or an underscore. Think of them as random unpadded [Base64url][]
strings. You've already seen this ID format elsewhere: on YouTube.

A default-sized Nano ID is 21 characters long: 126 bits of entropy at 6 bits
A default Nano ID is 21 characters long, encoding 126 bits of entropy at 6 bits
per character.

[Base64url]: https://datatracker.ietf.org/doc/html/rfc4648#section-5
Expand Down

0 comments on commit 1408c32

Please sign in to comment.