0

does anyone know why introducing a simple line like "Pubkey::new_unique()" inside https://github.com/solana-labs/example-helloworld/blob/master/src/program-rust/src/lib.rs#L22 will make the program fail?

bartosz.lipinski
  • 2,627
  • 2
  • 21
  • 34
anondevpepe
  • 287
  • 1
  • 4
  • 8

1 Answers1

1

The implementation of that function uses global data. Programs cannot use global data

Chase Barker
  • 947
  • 5
  • 7