mirror of
https://github.com/ViaVersion/VIAaaS.git
synced 2025-01-24 22:01:49 +01:00
remove "VIAaaS" from server id
This commit is contained in:
parent
52f6395bc0
commit
cf4573fc9d
@ -161,8 +161,8 @@ suspend fun hasJoined(username: String, hash: String): JsonObject {
|
|||||||
|
|
||||||
fun generate128Bits() = ByteArray(16).also { secureRandom.nextBytes(it) }
|
fun generate128Bits() = ByteArray(16).also { secureRandom.nextBytes(it) }
|
||||||
|
|
||||||
fun generateServerId() = "VIAaaS" + ByteArray(10).let {
|
fun generateServerId() = ByteArray(13).let {
|
||||||
secureRandom.nextBytes(it)
|
secureRandom.nextBytes(it)
|
||||||
Base64.getEncoder().withoutPadding().encodeToString(it)
|
Base64.getEncoder().withoutPadding().encodeToString(it)
|
||||||
// https://developer.mozilla.org/en-US/docs/Glossary/Base64 133% of original
|
// https://developer.mozilla.org/en-US/docs/Glossary/Base64 133% of original
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user