Lines Matching refs:hash
14 // create 16 byte hash from seed
15 $hash = md5($seed);
19 'legs' => _get_monster_part(substr($hash, 0, 2), 1, 5),
20 'hair' => _get_monster_part(substr($hash, 2, 2), 1, 5),
21 'arms' => _get_monster_part(substr($hash, 4, 2), 1, 5),
22 'body' => _get_monster_part(substr($hash, 6, 2), 1, 15),
23 'eyes' => _get_monster_part(substr($hash, 8, 2), 1, 15),
24 'mouth'=> _get_monster_part(substr($hash, 10, 2), 1, 10),
45 $r = _get_monster_part(substr($hash, 0, 4), 20, 235);
46 $g = _get_monster_part(substr($hash, 4, 4), 20, 235);
47 $b = _get_monster_part(substr($hash, 8, 4), 20, 235);