mirror of
https://github.com/love2d/love.git
synced 2026-08-15 15:51:12 +02:00
Throw away the first 3 love.math.random results after seeding it (xorshift outputs less random results the first few times when the seed is very similar to a previous one)
This commit is contained in:
@@ -89,7 +89,7 @@ static void parse_address(lua_State *l, const char *addr_str, ENetAddress *addre
|
||||
/**
|
||||
* Find the index of a given peer for which we only have the pointer.
|
||||
*/
|
||||
size_t find_peer_index (lua_State *l, ENetHost *enet_host, ENetPeer *peer) {
|
||||
static size_t find_peer_index(lua_State *l, ENetHost *enet_host, ENetPeer *peer) {
|
||||
size_t peer_index;
|
||||
for (peer_index = 0; peer_index < enet_host->peerCount; peer_index++) {
|
||||
if (peer == &(enet_host->peers[peer_index]))
|
||||
|
||||
Reference in New Issue
Block a user