std.crypto.ecdsa: use separate function for null seed (#20953)

Due to the `std.crypto.ecdsa.KeyPair.create` taking and optional of seed, even if the seed is generated, cross-compiling to the environments without standard random source (eg. wasm) (`std.crypto.random.bytes`) will fail to compile.

This commit changes the API of the problematic function and moves the random seed generation to a new utility function.
a6486492beJakub Dóka committed on 8/7/2024, 8:06:15 AM· committed by GitHubparentebd0c6f
1 file changedLine totals unavailable