Dale Swanson

https://daleswanson.blogspot.com

1 posts

Tech

Subscribe via RSS

  1. You should use the full alphabet when generating random codes

    This is going to be a post with a pretty limited audience, even by this blog's standards. I'll try to keep this post short so let me get to the point I want to make: If you're generating a random code to represent something (like a94a8fe5), rather than just using hexadecimal you should do the work to convert it to the full alphanumeric space (a-z and 0-9) instead (eg, 3z4xlz).As for why, you may notice that the second code (3z4xlz) is shorter than the first (a94a8fe5). Despite this, the chance…

    0