Seed the RNG before signing the package.

This commit is contained in:
Matt Perry
2015-11-04 14:08:24 -05:00
parent 76c54f148b
commit 4ba8a7f077
2 changed files with 4 additions and 2 deletions

View File

@@ -182,6 +182,8 @@ class BuildCommand extends FlutterCommand {
archive.addFile(file);
}
await CipherParameters.get().seedRandom();
AsymmetricKeyPair keyPair = keyPairFromPrivateKeyFileSync(privateKeyPath);
Uint8List zipBytes = new Uint8List.fromList(new ZipEncoder().encode(archive));
Bundle bundle = new Bundle.fromContent(