SessionKey property
Uint8List?
get
SessionKey
Implementation
static Uint8List? get SessionKey {
// this has to be computed only once.
if (ExchangeServiceBase._binarySecret == null) {
Random randomNumberGenerator = Random();
ExchangeServiceBase._binarySecret = Uint8List(256 ~/ 8);
for (int i = 0; i < ExchangeServiceBase._binarySecret!.length; i++) {
ExchangeServiceBase._binarySecret![i] =
randomNumberGenerator.nextInt(256);
}
}
return ExchangeServiceBase._binarySecret;
}