Changed random seed generation for bitcoin.

This commit is contained in:
M
2021-05-10 13:06:57 +03:00
parent d23228ac01
commit bcd4fdd5e0
23 changed files with 116 additions and 56 deletions
+13
View File
@@ -0,0 +1,13 @@
import 'dart:typed_data';
import 'package:flutter/services.dart';
const utils = const MethodChannel('com.cake_wallet/native_utils');
Future<Uint8List> secRandom(int count) async {
try {
return await utils.invokeMethod<Uint8List>('sec_random', {'count': count});
} on PlatformException catch (_) {
return Uint8List.fromList([]);
}
}