File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -47,10 +47,10 @@ public extension Data {
47
47
If an error occurs during random bytes generation, the function returns `nil`.
48
48
Error occurs only if `SecRandomCopyBytes` returns status that is not `errSecSuccess`.
49
49
See [all status codes](https://developer.apple.com/documentation/security/1542001-security_framework_result_codes) for possible error reasons.
50
- Note: in v4 of web3swift this function will be deprecated and a new implementation will be provided that will throw occured error.
50
+ Note: in v4 of web3swift this function will be deprecated and a new implementation will be provided that will throw occurred error.
51
51
- Parameter length: The number of random bytes to generate.
52
52
53
- - Returns: optional `Data` object containing the generated random bytes, or `nil` if an error occured during generation.
53
+ - Returns: optional `Data` object containing the generated random bytes, or `nil` if an error occurred during generation.
54
54
*/
55
55
static func randomBytes( length: Int ) -> Data ? {
56
56
var entropyBytes = [ UInt8] ( repeating: 0 , count: length)
You can’t perform that action at this time.
0 commit comments