(rand *rand.Rand)
| 1314 | } |
| 1315 | |
| 1316 | func (m *TMap) NewKey(rand *rand.Rand) int { |
| 1317 | for { |
| 1318 | k := rand.Int() |
| 1319 | if _, ok := m.std[k]; !ok { |
| 1320 | return k |
| 1321 | } |
| 1322 | } |
| 1323 | } |
| 1324 | |
| 1325 | func (m *TMap) ExistingKey(rand *rand.Rand) int { |
| 1326 | if len(m.keys) == 0 { |
no outgoing calls
no test coverage detected