package sdkrand

import (
	
	
	
)
lockedSource is a thread-safe implementation of rand.Source
type lockedSource struct {
	lk  sync.Mutex
	src rand.Source
}

func ( *lockedSource) () ( int64) {
	.lk.Lock()
	 = .src.Int63()
	.lk.Unlock()
	return
}

func ( *lockedSource) ( int64) {
	.lk.Lock()
	.src.Seed()
	.lk.Unlock()
}
SeededRand is a new RNG using a thread safe implementation of rand.Source