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
instead of using slow and memory-hungry distributions (deck is 10kB, instead of 105Bytes), we can use std::rand and std::random_shuffle in combination with std::srand(). srand() is called once in main and we can use all other random methods.
Also there should be tests for entropy of these methods.
Moreover heap usage should be minimalized. We dont need to allocate heap memory for a 104Bytes array (deck)
This will be benefical for performance and memory as well as readability.
The text was updated successfully, but these errors were encountered:
instead of using slow and memory-hungry distributions (deck is 10kB, instead of 105Bytes), we can use std::rand and std::random_shuffle in combination with std::srand(). srand() is called once in main and we can use all other random methods.
Also there should be tests for entropy of these methods.
Moreover heap usage should be minimalized. We dont need to allocate heap memory for a 104Bytes array (deck)
This will be benefical for performance and memory as well as readability.
The text was updated successfully, but these errors were encountered: