(rand *rand.Rand)
| 2199 | } |
| 2200 | |
| 2201 | func (m *TSortedMap) NewKey(rand *rand.Rand) int { |
| 2202 | for { |
| 2203 | k := rand.Int() |
| 2204 | if _, ok := m.std[k]; !ok { |
| 2205 | return k |
| 2206 | } |
| 2207 | } |
| 2208 | } |
| 2209 | |
| 2210 | func (m *TSortedMap) ExistingKey(rand *rand.Rand) int { |
| 2211 | if len(m.keys) == 0 { |
no outgoing calls
no test coverage detected