Get Some Random Characters From A UUID
rust
```cargo
=
```
use Uuid;
uuid
I'm not sure why I did this originally. I think
it's becuase I wanted random numbers and
letters. I've since
Also, this breaks if you ask for too many characters (see notes). The new code on the other page doesn't have that problem.
- This is not guaranteed to be unique, it's just a way to get a few random characters.
- As noted in the code, trying to get more than 32 characters will crash. Making a version that returns an option can address that if you need it
- This returns a string with numbers and random lower case letters
- It's generated off a UUID, but there's no dashes in it
Footnotes And References
- •
- •