Update wyhash to final4

This commit is contained in:
Antonio SJ Musumeci 2023-08-21 00:18:41 -05:00
parent 3a1d8e03a1
commit fdecabfaab
5 changed files with 182 additions and 83 deletions

View file

@ -14,6 +14,8 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#include "rnd.hpp"
#include <grp.h>
#include <pwd.h>
#include <stdlib.h>
@ -81,7 +83,7 @@ GIDRecord *
GIDCache::allocrec(void)
{
if(size == MAXRECS)
return &recs[rand() % MAXRECS];
return &recs[RND::rand64(MAXRECS)];
else
return &recs[size++];
}