We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 224e6eb commit aa09ccbCopy full SHA for aa09ccb
src/random.h
@@ -46,7 +46,11 @@ class FastRandomContext {
46
uint32_t Rw;
47
};
48
49
-/* Number of random bytes returned by GetOSRand */
+/* Number of random bytes returned by GetOSRand.
50
+ * When changing this constant make sure to change all call sites, and make
51
+ * sure that the underlying OS APIs for all platforms support the number.
52
+ * (many cap out at 256 bytes).
53
+ */
54
static const ssize_t NUM_OS_RANDOM_BYTES = 32;
55
56
/** Get 32 bytes of system entropy. Do not use this in application code: use
0 commit comments