Upgrade dependencies
This commit is contained in:
@@ -6,10 +6,12 @@ import com.infendro.random.PRNG
|
||||
import kotlin.properties.Delegates.notNull
|
||||
|
||||
class Xoshiro256pp : PRNG() {
|
||||
private val function = `SHA-256`()
|
||||
|
||||
private var s: LongArray by notNull()
|
||||
|
||||
override fun seed(seed: ByteArray) {
|
||||
s = `SHA-256`.hash(seed).toLongArray()
|
||||
s = function.hash(seed).toLongArray()
|
||||
}
|
||||
|
||||
override fun generate(): Int {
|
||||
|
||||
Reference in New Issue
Block a user