move pseudorandom number generator

This commit is contained in:
brenoepic 2022-04-28 20:20:46 -03:00
parent 61acf1ec59
commit 751a2d4cff

View File

@ -1,5 +1,6 @@
package com.eu.habbo.messages.outgoing.users; package com.eu.habbo.messages.outgoing.users;
import com.eu.habbo.Emulator;
import com.eu.habbo.habbohotel.messenger.MessengerBuddy; import com.eu.habbo.habbohotel.messenger.MessengerBuddy;
import com.eu.habbo.habbohotel.users.Habbo; import com.eu.habbo.habbohotel.users.Habbo;
import com.eu.habbo.messages.ServerMessage; import com.eu.habbo.messages.ServerMessage;
@ -75,7 +76,7 @@ public class RelationshipStatusInfoComposer extends MessageComposer {
this.response.appendInt(total); this.response.appendInt(total);
Random random = new Random(); Random random = Emulator.getRandom();
if (!this.lovers.isEmpty()) { if (!this.lovers.isEmpty()) {
int loversIndex = random.nextInt(this.lovers.size()); int loversIndex = random.nextInt(this.lovers.size());