Skip to content

Commit ef86b7a

Browse files
authored
Changing error message for RNGIndex for more clarity (#267)
1 parent b041ef7 commit ef86b7a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

crates/pecos-rng/src/rng_pcg.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,9 @@ impl RNGModel {
320320
pub fn set_index(&mut self, idx: u64) {
321321
assert!(
322322
self.count <= idx,
323-
"RNGindex called after specified index already generated"
323+
"Invalid start index: index {} is before the current stream index: {}",
324+
idx,
325+
self.count
324326
);
325327
while self.count < idx {
326328
self.rng_num();

0 commit comments

Comments
 (0)