Whoops.
This commit is contained in:
parent
90b7383df7
commit
76c795a966
@ -9,7 +9,7 @@ static uint8_t generate_noise(uint8_t x, uint8_t y)
|
|||||||
{
|
{
|
||||||
int value = (x + y * 128 + noise_seed);
|
int value = (x + y * 128 + noise_seed);
|
||||||
uint8_t *data = (uint8_t *) &value;
|
uint8_t *data = (uint8_t *) &value;
|
||||||
unsigned hash;
|
unsigned hash = 0;
|
||||||
|
|
||||||
while ((int *) data != &value + 1) {
|
while ((int *) data != &value + 1) {
|
||||||
hash ^= (*data << 8);
|
hash ^= (*data << 8);
|
||||||
|
Loading…
Reference in New Issue
Block a user