Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for diceRoll (0.08 seconds)

  1. lib/fips140/v1.26.0.zip

    weighted towards high, low, and edge values. func (Scalar) Generate(rand *mathrand.Rand, size int) reflect.Value { var s [32]byte diceRoll := rand.Intn(100) switch { case diceRoll == 0: case diceRoll == 1: s = scOneBytes case diceRoll == 2: s = [32]byte(scMinusOne.Bytes()) case diceRoll < 5: // Generate a low scalar in [0, 2^125). rand.Read(s[:16]) s[15] &= (1 << 5) - 1 case diceRoll < 10: // Generate a high scalar in [2^252, 2^252 + 2^124). s[31] = 1 << 4 rand.Read(s[:16]) s[15] &= (1 << 4) - 1 default:...
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Thu Jan 08 17:58:32 GMT 2026
    - 660.3K bytes
    - Click Count (0)
  2. lib/fips140/v1.0.0-c2097c7c.zip

    weighted towards high, low, and edge values. func (Scalar) Generate(rand *mathrand.Rand, size int) reflect.Value { var s [32]byte diceRoll := rand.Intn(100) switch { case diceRoll == 0: case diceRoll == 1: s = scOneBytes case diceRoll == 2: s = scalarMinusOneBytes case diceRoll < 5: // Generate a low scalar in [0, 2^125). rand.Read(s[:16]) s[15] &= (1 << 5) - 1 case diceRoll < 10: // Generate a high scalar in [2^252, 2^252 + 2^124). s[31] = 1 << 4 rand.Read(s[:16]) s[15] &= (1 << 4) - 1 default: // Generate...
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Thu Sep 25 19:53:19 GMT 2025
    - 642.7K bytes
    - Click Count (0)
Back to Top