Skip to content

Commit 9211af2

Browse files
committed
Update after feedback
1 parent b4c4a3c commit 9211af2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/crypto/src/crypto.erl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2491,7 +2491,7 @@ is scrambled through AES-256 to create a 58-bit pseudo random value.
24912491

24922492
The result should be statistically completely unpredictable random values,
24932493
since the scrambling is cryptographically strong and the period is
2494-
ridiculously long. But the generated numbers are not to be regarded as
2494+
extremely long. But the generated numbers are not to be regarded as
24952495
cryptographically strong since there is no re-keying schedule,
24962496
and since the sequence is repeated for the same seed.
24972497

@@ -2547,7 +2547,7 @@ through `rand:bytes_s/2`.
25472547

25482548
The key stream from a stream cipher is cryptographically unpredictable,
25492549
which should result in statistically completely unpredictable random values,
2550-
But the generated numbers are not to be regarded as
2550+
but the generated numbers are not to be regarded as
25512551
cryptographically strong since there is no re-keying schedule,
25522552
and since the sequence is repeated for the same seed.
25532553

lib/stdlib/src/rand.erl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1489,8 +1489,8 @@ as required to compose the `t:binary/0`. Returns the generated
14891489
> function cannot do.
14901490
>
14911491
> Alas, when this function is based on a PRNG that produces random integers,
1492-
> such as all in this module's [algorithms](#algorithms) section,
1493-
> bytes has to created from integers, which becomes rather slow.
1492+
> such as any in this module's [algorithms](#algorithms) section,
1493+
> bytes have to be created from integers, which becomes rather slow.
14941494
>
14951495
> A plug-in generator may implement a dedicated callback
14961496
> for generating bytes, to mitigate this problem, which in that case

0 commit comments

Comments
 (0)