Skip to content

Commit

Permalink
Math.random with arguments?
Browse files Browse the repository at this point in the history
  • Loading branch information
pihentagy authored Oct 19, 2020
1 parent 5b90d16 commit f927b48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/producer.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const kafka = new Kafka({
const topic = 'topic-test'
const producer = kafka.producer()

const getRandomNumber = () => Math.round(Math.random(10) * 1000)
const getRandomNumber = () => Math.round(Math.random() * 1000)
const createMessage = num => ({
key: `key-${num}`,
value: `value-${num}-${new Date().toISOString()}`,
Expand Down

0 comments on commit f927b48

Please sign in to comment.