How is ActiveSupport::SecureRandom secure?

Is the ActiveSupport::SecureRandom secure in the way that it is 'impossible' to figure out random numbers or is it secure in the way that it will return UUIDs?


The security of the random number (and its application) comes from how sufficiently random it is for cryptographic purposes. The quality of the randomness relies to a great extent on the entropy that the system can provide such as through interfaces like /dev/urandom on Linux. For it to be secure, an attacker must not be able to guess the next random number, given some sequence of previously generated random numbers.

You could use ActiveRecord::SecureRandom as part of an implementation for creating UUID (version 4) but they are not directly related

Need Your Help

rsync NOT changed file

linux file rsync

It is possible to rsync file even if it wasn't changed.

how to Leverage browser caching in django

python django caching

I made a small site in Django but while checking the site performance with Google pagespeed I get the recommendation as Leverage browser caching but i cant find a way to achieve it in django