Commit 0beb3bf1 authored by vvb2060's avatar vvb2060 Committed by John Wu

Make CI builds reproducible

parent b68658e9
......@@ -11,7 +11,8 @@ import javax.crypto.spec.SecretKeySpec
import kotlin.random.asKotlinRandom
// Set non-zero value here to fix the random seed for reproducible builds
const val RAND_SEED = 0
// CI builds are always reproducible
val RAND_SEED = if (System.getenv("CI") != null) 42 else 0
private lateinit var RANDOM: Random
private val kRANDOM get() = RANDOM.asKotlinRandom()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment