You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the Rand is bascially an implementation of ChaCha8, which is not ideal, as we want to provide multiple random number algorithms for different occasions. For example, we may want LCG as its fast and straightforward when we do not need cryptographic security.
A possible solution is to follow go's path, defining a Source trait, and define Rand as a wrapper around it:
Currently the
Rand
is bascially an implementation of ChaCha8, which is not ideal, as we want to provide multiple random number algorithms for different occasions. For example, we may want LCG as its fast and straightforward when we do not need cryptographic security.A possible solution is to follow go's path, defining a
Source
trait, and defineRand
as a wrapper around it:The migration, however, will break a couple of APIs, notably the
new
function.The text was updated successfully, but these errors were encountered: