Closed neilalexander closed 1 week ago
Using crand was unpredictable because it might produce bytes that are a valid subject and therefore we wouldn't notice the problem in recoverFullState. Dropping in a UTF-8 rune error trips the detection always and is therefore more reliable.
crand
recoverFullState
Signed-off-by: Neil Twigg neil@nats.io
Using
crand
was unpredictable because it might produce bytes that are a valid subject and therefore we wouldn't notice the problem inrecoverFullState
. Dropping in a UTF-8 rune error trips the detection always and is therefore more reliable.Signed-off-by: Neil Twigg neil@nats.io