()
| 323 | } |
| 324 | |
| 325 | func (v Variant) String() string { |
| 326 | switch v { |
| 327 | case RFC4122: |
| 328 | return "RFC4122" |
| 329 | case Reserved: |
| 330 | return "Reserved" |
| 331 | case Microsoft: |
| 332 | return "Microsoft" |
| 333 | case Future: |
| 334 | return "Future" |
| 335 | case Invalid: |
| 336 | return "Invalid" |
| 337 | } |
| 338 | return fmt.Sprintf("BadVariant%d", int(v)) |
| 339 | } |
| 340 | |
| 341 | // SetRand sets the random number generator to r, which implements io.Reader. |
| 342 | // If r.Read returns an error when the package requests random data then |
nothing calls this directly
no outgoing calls
no test coverage detected