Class PlayerRandomStream
java.lang.Object
client.PlayerRandomStream
玩家連線階段的偽亂數串流,實作楓之谷客戶端的
CRand32 三狀態線性回饋移位算法。
持有三個 32 位元種子(seed1~seed3),透過 CRand32__Random
每次產生一個新的 unsigned 32 位元亂數;connectData 在登入握手時
連續取三個亂數寫入封包並以其作為新種子,確保客戶端與伺服器的亂數序列同步;
由 MapleCharacter 在角色連線時持有。
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidfinal longfinal voidCRand32__Seed(long s1, long s2, long s3)
-
Constructor Details
-
PlayerRandomStream
public PlayerRandomStream()
-
-
Method Details
-
CRand32__Seed
public final void CRand32__Seed(long s1, long s2, long s3) -
CRand32__Random
public final long CRand32__Random() -
connectData
-