mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
Update wyhash to final4
This commit is contained in:
parent
3a1d8e03a1
commit
fdecabfaab
5 changed files with 182 additions and 83 deletions
|
|
@ -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++];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue