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?
Asked
Active
Viewed 173 times
1 Answers
1
The implementation of that function uses global data. Programs cannot use global data

Chase Barker
- 947
- 5
- 7